Fix test names (#1853)

* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies

* cleanup pom

* cleanup pom

* add missing parent

* fix logging issue

* fix test names
This commit is contained in:
Doha2012
2017-05-15 18:35:14 +02:00
committed by Eugen
parent 5a58aacb8f
commit 48cd6f876f
369 changed files with 405 additions and 405 deletions
@@ -5,9 +5,9 @@ import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.Test;
public class DependentTests {
public class DependentUnitTest {
private static final Logger LOGGER = LoggerFactory.getLogger(DependentTests.class);
private static final Logger LOGGER = LoggerFactory.getLogger(DependentUnitTest.class);
private String email = "abc@qwe.com";
@@ -4,7 +4,7 @@ import org.testng.annotations.AfterGroups;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Test;
public class TestGroup {
public class GroupIntegrationTest {
@BeforeGroups("database")
public void setupDB() {
@@ -3,7 +3,7 @@ package baeldung.com;
import org.testng.Assert;
import org.testng.annotations.Test;
public class MultiThreadedTests {
public class MultiThreadedIntegrationTest {
@Test(threadPoolSize = 5, invocationCount = 10, timeOut = 1000)
public void givenMethod_whenRunInThreads_thenCorrect() {
@@ -7,9 +7,9 @@ import org.testng.annotations.DataProvider;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
public class ParametrizedTests {
public class ParametrizedUnitTest {
private static final Logger LOGGER = LoggerFactory.getLogger(ParametrizedTests.class);
private static final Logger LOGGER = LoggerFactory.getLogger(ParametrizedUnitTest.class);
@Test
@Parameters({"value", "isEven"})
@@ -3,7 +3,7 @@ package baeldung.com;
import org.testng.Assert;
import org.testng.annotations.Test;
public class PriorityTest {
public class PriorityUnitTest {
private String testString = "10";
private int testInt = 23;
@@ -4,8 +4,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;
public class RegistrationTest {
private static final Logger LOGGER = LoggerFactory.getLogger(RegistrationTest.class);
public class RegistrationUnitTest {
private static final Logger LOGGER = LoggerFactory.getLogger(RegistrationUnitTest.class);
@Test
public void whenCalledFromSuite_thanOK() {
@@ -4,8 +4,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;
public class SignInTest {
private static final Logger LOGGER = LoggerFactory.getLogger(SignInTest.class);
public class SignInUnitTest {
private static final Logger LOGGER = LoggerFactory.getLogger(SignInUnitTest.class);
@Test
public void whenCalledFromSuite_thanOK() {
@@ -6,7 +6,7 @@ import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class SimpleTest extends TestNG {
public class SimpleUnitTest extends TestNG {
private int number;
@BeforeClass
@@ -9,8 +9,8 @@ import org.testng.annotations.*;
import java.util.ArrayList;
import java.util.List;
public class SummationServiceTest extends TestNG {
private static final Logger LOGGER = LoggerFactory.getLogger(DependentTests.class);
public class SummationServiceIntegrationTest extends TestNG {
private static final Logger LOGGER = LoggerFactory.getLogger(DependentUnitTest.class);
private List<Integer> numbers;
@@ -2,7 +2,7 @@ package baeldung.com;
import org.testng.annotations.Test;
public class TimeOutTest {
public class TimeOutIntegrationTest {
@Test(timeOut = 1000, enabled = false)
public void givenExecution_takeMoreTime_thenFail() {
@@ -7,7 +7,7 @@
<parameter name="value" value="1"/>
<parameter name="isEven" value="false"/>
<classes>
<class name="baeldung.com.ParametrizedTests"/>
<class name="baeldung.com.ParametrizedUnitTest"/>
</classes>
</test>
</suite>
+1 -1
View File
@@ -7,7 +7,7 @@
</run>
</groups>
<classes>
<class name="baeldung.com.SummationServiceTest"/>
<class name="baeldung.com.SummationServiceIntegrationTest"/>
</classes>
</test>
</suite>
+1 -1
View File
@@ -7,7 +7,7 @@
</run>
</groups>
<classes>
<class name="baeldung.com.SummationServiceTest">
<class name="baeldung.com.SummationServiceIntegrationTest">
<methods>
<include name="givenNumbers_sumEquals_thenCorrect"/>
</methods>
+3 -3
View File
@@ -5,9 +5,9 @@
</listeners>
<test name="test suite">
<classes>
<class name="baeldung.com.RegistrationTest" />
<class name="baeldung.com.SignInTest" />
<class name="baeldung.com.SimpleTest" />
<class name="baeldung.com.RegistrationUnitTest" />
<class name="baeldung.com.SignInUnitTest" />
<class name="baeldung.com.SimpleUnitTest" />
</classes>
</test>
</suite>