Merge pull request #5457 from eugenp/BAEL-9635

move tests in junit-5
This commit is contained in:
Loredana Crusoveanu 2018-10-19 20:54:54 +03:00 committed by GitHub
commit 5e3f5a9706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 12 additions and 14 deletions

View File

@ -29,7 +29,6 @@
- [AWS Lambda With Java](http://www.baeldung.com/java-aws-lambda)
- [Introduction to Nashorn](http://www.baeldung.com/java-nashorn)
- [Chained Exceptions in Java](http://www.baeldung.com/java-chained-exceptions)
- [A Quick JUnit vs TestNG Comparison](http://www.baeldung.com/junit-vs-testng)
- [Java Primitive Conversions](http://www.baeldung.com/java-primitive-conversions)
- [Java Money and the Currency API](http://www.baeldung.com/java-money-and-currency)
- [JVM Log Forging](http://www.baeldung.com/jvm-log-forging)

View File

@ -15,3 +15,4 @@
- [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)
- [Testing an Abstract Class With JUnit](https://www.baeldung.com/junit-test-abstract-class)
- [A Quick JUnit vs TestNG Comparison](http://www.baeldung.com/junit-vs-testng)

View File

@ -1,4 +1,4 @@
package com.baeldung.throwsexception;
package com.baeldung.junit5vstestng;
public class Calculator {

View File

@ -1,4 +1,4 @@
package com.baeldung.throwsexception;
package com.baeldung.junit5vstestng;
public class DivideByZeroException extends RuntimeException {

View File

@ -1,4 +1,4 @@
package com.baeldung.throwsexception;
package com.baeldung.junit5vstestng;
import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.suite.childpackage1;
package com.baeldung.junit5vstestng;
import static org.junit.jupiter.api.Assertions.assertTrue;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.suite.childpackage2;
package com.baeldung.junit5vstestng;
import static org.junit.jupiter.api.Assertions.assertTrue;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.customtestname;
package com.baeldung.junit5vstestng;
import static org.junit.Assert.assertNotNull;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.parameterisedsource;
package com.baeldung.junit5vstestng;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.parameterisedsource;
package com.baeldung.junit5vstestng;
public enum PizzaDeliveryStrategy {
EXPRESS,

View File

@ -1,7 +1,5 @@
package org.baeldung.java.suite;
package com.baeldung.junit5vstestng;
import org.baeldung.java.suite.childpackage1.Class1UnitTest;
import org.baeldung.java.suite.childpackage2.Class2UnitTest;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.runner.RunWith;

View File

@ -1,4 +1,4 @@
package org.baeldung.java.suite;
package com.baeldung.junit5vstestng;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.platform.suite.api.SelectPackages;

View File

@ -11,7 +11,7 @@ import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class SummationServiceIntegrationTest {
public class SummationServiceUnitTest {
private static List<Integer> numbers;
@BeforeAll