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:
+1
-1
@@ -6,7 +6,7 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class ClassToInstanceMapTests {
|
||||
public class ClassToInstanceMapUnitTest {
|
||||
@Test
|
||||
public void whenOfCalled_thenCreateEmptyImmutableMap() {
|
||||
ClassToInstanceMap<Action> map = ImmutableClassToInstanceMap.of();
|
||||
+1
-1
@@ -9,7 +9,7 @@ import java.util.stream.IntStream;
|
||||
|
||||
import static org.assertj.core.api.Java6Assertions.assertThat;
|
||||
|
||||
public class EvictingQueueTest {
|
||||
public class EvictingQueueUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenEvictingQueue_whenAddElementToFull_thenShouldEvictOldestItem() {
|
||||
+1
-1
@@ -10,7 +10,7 @@ import org.junit.Test;
|
||||
|
||||
import com.google.common.math.BigIntegerMath;
|
||||
|
||||
public class GuavaBigIntegerMathTest {
|
||||
public class GuavaBigIntegerMathUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenPerformBinomialOnTwoIntValues_shouldReturnResult() {
|
||||
+1
-1
@@ -15,7 +15,7 @@ import static com.google.common.collect.Iterables.cycle;
|
||||
import static com.google.common.collect.Maps.newHashMap;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class GuavaCacheLoaderTest {
|
||||
public class GuavaCacheLoaderUnitTest {
|
||||
int callCount = 0;
|
||||
|
||||
@Test
|
||||
+1
-1
@@ -19,7 +19,7 @@ import com.google.common.cache.RemovalListener;
|
||||
import com.google.common.cache.RemovalNotification;
|
||||
import com.google.common.cache.Weigher;
|
||||
|
||||
public class GuavaCacheTest {
|
||||
public class GuavaCacheUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenCacheMiss_thenAutoLoad() {
|
||||
+1
-1
@@ -42,7 +42,7 @@ import com.google.common.collect.Table;
|
||||
import com.google.common.collect.Tables;
|
||||
import com.google.common.collect.TreeRangeSet;
|
||||
|
||||
public class GuavaCollectionTypesTest {
|
||||
public class GuavaCollectionTypesUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenCreateList_thenCreated() {
|
||||
+1
-1
@@ -24,7 +24,7 @@ import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class GuavaCollectionsExamplesTest {
|
||||
public class GuavaCollectionsExamplesUnitTest {
|
||||
|
||||
// tests
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.junit.Test;
|
||||
import com.google.common.math.DoubleMath;
|
||||
import com.google.common.math.IntMath;
|
||||
|
||||
public class GuavaDoubleMathTest {
|
||||
public class GuavaDoubleMathUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenFactorailDouble_shouldFactorialThemAndReturnTheResultIfInDoubleRange() {
|
||||
+1
-1
@@ -7,7 +7,7 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class GuavaEventBusTest {
|
||||
public class GuavaEventBusUnitTest {
|
||||
|
||||
private EventListener listener;
|
||||
private EventBus eventBus;
|
||||
+1
-1
@@ -21,7 +21,7 @@ import com.google.common.collect.FluentIterable;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
public class GuavaFilterTransformCollectionsTest {
|
||||
public class GuavaFilterTransformCollectionsUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenFilterWithIterables_thenFiltered() {
|
||||
+1
-1
@@ -26,7 +26,7 @@ import com.google.common.collect.Maps;
|
||||
import com.google.common.collect.Ordering;
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
public class GuavaFunctionalExamplesTest {
|
||||
public class GuavaFunctionalExamplesUnitTest {
|
||||
|
||||
// tests
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import com.google.common.io.LittleEndianDataInputStream;
|
||||
import com.google.common.io.LittleEndianDataOutputStream;
|
||||
import com.google.common.io.Resources;
|
||||
|
||||
public class GuavaIOTest {
|
||||
public class GuavaIOUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenWriteUsingFiles_thenWritten() throws IOException {
|
||||
+1
-1
@@ -7,7 +7,7 @@ import java.math.RoundingMode;
|
||||
import com.google.common.math.IntMath;
|
||||
import org.junit.Test;
|
||||
|
||||
public class GuavaIntMathTest {
|
||||
public class GuavaIntMathUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenPerformBinomialOnTwoIntegerValues_shouldReturnResultIfUnderInt() {
|
||||
+1
-1
@@ -7,7 +7,7 @@ import java.math.RoundingMode;
|
||||
import com.google.common.math.LongMath;
|
||||
import org.junit.Test;
|
||||
|
||||
public class GuavaLongMathTest {
|
||||
public class GuavaLongMathUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenPerformBinomialOnTwoLongValues_shouldReturnResultIfUnderLong() {
|
||||
+1
-1
@@ -11,7 +11,7 @@ import org.junit.Test;
|
||||
|
||||
import com.google.common.base.Function;
|
||||
|
||||
public class GuavaMapFromSetTests {
|
||||
public class GuavaMapFromSetUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenStringSet_whenMapsToElementLength_thenCorrect() {
|
||||
+1
-1
@@ -11,7 +11,7 @@ import org.junit.Test;
|
||||
import com.google.common.math.DoubleMath;
|
||||
import com.google.common.math.IntMath;
|
||||
|
||||
public class GuavaMathTest {
|
||||
public class GuavaMathUnitTest {
|
||||
@Test(expected = ArithmeticException.class)
|
||||
public void whenSumOverflow_thenThrowException() {
|
||||
IntMath.checkedAdd(Integer.MAX_VALUE, 1);
|
||||
+1
-1
@@ -12,7 +12,7 @@ import java.util.Map;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
|
||||
public class GuavaMultiMapTest {
|
||||
public class GuavaMultiMapUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenMap_whenAddTwoValuesForSameKey_shouldOverridePreviousKey() {
|
||||
+1
-1
@@ -17,7 +17,7 @@ import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Ordering;
|
||||
import com.google.common.primitives.Ints;
|
||||
|
||||
public class GuavaOrderingExamplesTest {
|
||||
public class GuavaOrderingExamplesUnitTest {
|
||||
|
||||
private final class OrderingByLenght extends Ordering<String> {
|
||||
@Override
|
||||
+1
-1
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class GuavaOrderingTest {
|
||||
public class GuavaOrderingUnitTest {
|
||||
@Test
|
||||
public void givenListOfIntegers_whenCreateNaturalOrderOrdering_shouldSortProperly() {
|
||||
//given
|
||||
+1
-1
@@ -5,7 +5,7 @@ import java.util.Arrays;
|
||||
import org.junit.Test;
|
||||
import com.google.common.base.*;
|
||||
|
||||
public class GuavaPreConditionsTest {
|
||||
public class GuavaPreConditionsUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenCheckArgumentEvaluatesFalse_throwsException() {
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.google.common.collect.Range;
|
||||
import com.google.common.collect.RangeMap;
|
||||
import com.google.common.collect.TreeRangeMap;
|
||||
|
||||
public class GuavaRangeMapTest {
|
||||
public class GuavaRangeMapUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenRangeMap_whenQueryWithinRange_returnsSucessfully() {
|
||||
+1
-1
@@ -9,7 +9,7 @@ import com.google.common.collect.Range;
|
||||
import com.google.common.collect.RangeSet;
|
||||
import com.google.common.collect.TreeRangeSet;
|
||||
|
||||
public class GuavaRangeSetTest {
|
||||
public class GuavaRangeSetUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenRangeSet_whenQueryWithinRange_returnsSucessfully() {
|
||||
+1
-1
@@ -18,7 +18,7 @@ import static junit.framework.TestCase.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class GuavaReflectionUtilsTest {
|
||||
public class GuavaReflectionUtilsUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenTwoGenericList_whenCheckIsAssignableFrom_thenReturnTrueDueToTypeErasure() {
|
||||
+1
-1
@@ -19,7 +19,7 @@ import com.google.common.base.Joiner;
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.base.Splitter;
|
||||
|
||||
public class GuavaStringTest {
|
||||
public class GuavaStringUnitTest {
|
||||
|
||||
@Test
|
||||
public void whenConvertListToString_thenConverted() {
|
||||
+1
-1
@@ -12,7 +12,7 @@ import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Table;
|
||||
import com.google.common.collect.TreeBasedTable;
|
||||
|
||||
public class GuavaTableTest {
|
||||
public class GuavaTableUnitTest {
|
||||
|
||||
@Test
|
||||
public void givenTable_whenGet_returnsSuccessfully() {
|
||||
+1
-1
@@ -9,7 +9,7 @@ import java.util.stream.IntStream;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class MinMaxPriorityQueueTest {
|
||||
public class MinMaxPriorityQueueUnitTest {
|
||||
@Test
|
||||
public void givenMinMaxPriorityQueue_whenAddElementToFull_thenShouldEvictGreatestItem() {
|
||||
//given
|
||||
+1
-1
@@ -23,7 +23,7 @@ import org.junit.Test;
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
public class HamcrestExamplesTest {
|
||||
public class HamcrestExamplesUnitTest {
|
||||
|
||||
// tests
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ import static org.hamcrest.text.IsEqualIgnoringCase.equalToIgnoringCase;
|
||||
import static org.hamcrest.text.IsEqualIgnoringWhiteSpace.equalToIgnoringWhiteSpace;
|
||||
import static org.hamcrest.text.StringContainsInOrder.stringContainsInOrder;
|
||||
|
||||
public class HamcrestMatcherTest {
|
||||
public class HamcrestMatcherUnitTest {
|
||||
@Test
|
||||
public void given2Strings_whenEqual_thenCorrect() {
|
||||
String a = "foo";
|
||||
Reference in New Issue
Block a user