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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user