Merge pull request #7298 from amit2103/BAEL-12826
[BAEL-12826] - Let's break the junit-5 module
This commit is contained in:
commit
9572af2804
|
@ -1,5 +1,11 @@
|
||||||
### Relevant Articles:
|
### Relevant Articles:
|
||||||
|
- [The Basics of JUnit 5 – A Preview](http://www.baeldung.com/junit-5-preview)
|
||||||
|
- [A Guide to JUnit 5](http://www.baeldung.com/junit-5)
|
||||||
|
- [JUnit5 @RunWith](http://www.baeldung.com/junit-5-runwith)
|
||||||
- [Get the Path of the /src/test/resources Directory in JUnit](https://www.baeldung.com/junit-src-test-resources-directory-path)
|
- [Get the Path of the /src/test/resources Directory in JUnit](https://www.baeldung.com/junit-src-test-resources-directory-path)
|
||||||
- [Tagging and Filtering JUnit Tests](https://www.baeldung.com/junit-filtering-tests)
|
- [Tagging and Filtering JUnit Tests](https://www.baeldung.com/junit-filtering-tests)
|
||||||
- [JUnit 5 Temporary Directory Support](https://www.baeldung.com/junit-5-temporary-directory)
|
- [JUnit 5 Temporary Directory Support](https://www.baeldung.com/junit-5-temporary-directory)
|
||||||
|
- [@Before vs @BeforeClass vs @BeforeEach vs @BeforeAll](http://www.baeldung.com/junit-before-beforeclass-beforeeach-beforeall)
|
||||||
|
- [JUnit 5 @Test Annotation](http://www.baeldung.com/junit-5-test-annotation)
|
||||||
|
- [Migrating from JUnit 4 to JUnit 5](http://www.baeldung.com/junit-5-migration)
|
||||||
|
- [Assert an Exception is Thrown in JUnit 4 and 5](http://www.baeldung.com/junit-assert-exception)
|
|
@ -17,7 +17,7 @@ public class ReadResourceDirectoryUnitTest {
|
||||||
String absolutePath = file.getAbsolutePath();
|
String absolutePath = file.getAbsolutePath();
|
||||||
|
|
||||||
System.out.println(absolutePath);
|
System.out.println(absolutePath);
|
||||||
Assert.assertTrue(absolutePath.endsWith("src/test/resources"));
|
Assert.assertTrue(absolutePath.endsWith("src" + File.separator + "test" + File.separator + "resources"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -27,7 +27,7 @@ public class ReadResourceDirectoryUnitTest {
|
||||||
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
|
String absolutePath = resourceDirectory.toFile().getAbsolutePath();
|
||||||
|
|
||||||
System.out.println(absolutePath);
|
System.out.println(absolutePath);
|
||||||
Assert.assertTrue(absolutePath.endsWith("src/test/resources"));
|
Assert.assertTrue(absolutePath.endsWith("src" + File.separator + "test" + File.separator + "resources"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -39,7 +39,7 @@ public class ReadResourceDirectoryUnitTest {
|
||||||
String absolutePath = file.getAbsolutePath();
|
String absolutePath = file.getAbsolutePath();
|
||||||
|
|
||||||
System.out.println(absolutePath);
|
System.out.println(absolutePath);
|
||||||
Assert.assertTrue(absolutePath.endsWith("/example_resource.txt"));
|
Assert.assertTrue(absolutePath.endsWith(File.separator + "example_resource.txt"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
### Relevant Articles:
|
### Relevant Articles:
|
||||||
- [The Basics of JUnit 5 – A Preview](http://www.baeldung.com/junit-5-preview)
|
|
||||||
- [A Guide to JUnit 5](http://www.baeldung.com/junit-5)
|
|
||||||
- [A Guide to @RepeatedTest in Junit 5](http://www.baeldung.com/junit-5-repeated-test)
|
- [A Guide to @RepeatedTest in Junit 5](http://www.baeldung.com/junit-5-repeated-test)
|
||||||
- [Guide to Dynamic Tests in Junit 5](http://www.baeldung.com/junit5-dynamic-tests)
|
- [Guide to Dynamic Tests in Junit 5](http://www.baeldung.com/junit5-dynamic-tests)
|
||||||
- [A Guide to JUnit 5 Extensions](http://www.baeldung.com/junit-5-extensions)
|
- [A Guide to JUnit 5 Extensions](http://www.baeldung.com/junit-5-extensions)
|
||||||
- [Inject Parameters into JUnit Jupiter Unit Tests](http://www.baeldung.com/junit-5-parameters)
|
- [Inject Parameters into JUnit Jupiter Unit Tests](http://www.baeldung.com/junit-5-parameters)
|
||||||
- [Mockito and JUnit 5 – Using ExtendWith](http://www.baeldung.com/mockito-junit-5-extension)
|
- [Mockito and JUnit 5 – Using ExtendWith](http://www.baeldung.com/mockito-junit-5-extension)
|
||||||
- [JUnit5 @RunWith](http://www.baeldung.com/junit-5-runwith)
|
|
||||||
- [JUnit 5 @Test Annotation](http://www.baeldung.com/junit-5-test-annotation)
|
|
||||||
- [Assert an Exception is Thrown in JUnit 4 and 5](http://www.baeldung.com/junit-assert-exception)
|
|
||||||
- [@Before vs @BeforeClass vs @BeforeEach vs @BeforeAll](http://www.baeldung.com/junit-before-beforeclass-beforeeach-beforeall)
|
|
||||||
- [Migrating from JUnit 4 to JUnit 5](http://www.baeldung.com/junit-5-migration)
|
|
||||||
- [JUnit5 Programmatic Extension Registration with @RegisterExtension](http://www.baeldung.com/junit-5-registerextension-annotation)
|
- [JUnit5 Programmatic Extension Registration with @RegisterExtension](http://www.baeldung.com/junit-5-registerextension-annotation)
|
||||||
- [The Order of Tests in JUnit](http://www.baeldung.com/junit-5-test-order)
|
- [The Order of Tests in JUnit](http://www.baeldung.com/junit-5-test-order)
|
||||||
- [Running JUnit Tests Programmatically, from a Java Application](https://www.baeldung.com/junit-tests-run-programmatically-from-java)
|
- [Running JUnit Tests Programmatically, from a Java Application](https://www.baeldung.com/junit-tests-run-programmatically-from-java)
|
||||||
|
|
Loading…
Reference in New Issue