BAEL-6813: Moved Magic Square code to core-java-lang-math-3 (#14587)

* BAEL-6813: Moved Magic Square code to core-java-lang-math-3

* Fix code to work below Java 11

* Fix unrelated broken test
This commit is contained in:
Graham Cox
2023-08-15 11:56:05 +01:00
committed by GitHub
parent 93a058e398
commit 4ea3b59240
6 changed files with 11 additions and 45 deletions

View File

@@ -3,10 +3,14 @@ package com.baeldung.jar;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import java.util.regex.Pattern;
public class JarAppUnitTest {
@Test
public void findClassTest(){
Assert.assertTrue(JarApp.findObjectMapperClass().endsWith("jackson-databind-2.13.3.jar"));
Pattern databindPattern = Pattern.compile(".*jackson-databind-(\\d)+\\.(\\d)+\\.(\\d)\\.jar$");
Assert.assertTrue(databindPattern.matcher(JarApp.findObjectMapperClass()).matches());
}
}