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
@@ -23,7 +23,7 @@ import com.fasterxml.jackson.databind.ObjectWriter;
import com.fasterxml.jackson.module.jsonSchema.JsonSchema;
import com.fasterxml.jackson.module.jsonSchema.factories.SchemaFactoryWrapper;
public class ExtraAnnotationTest {
public class ExtraAnnotationUnitTest {
@Test
public void whenNotUsingJsonIdentityReferenceAnnotation_thenCorrect() throws JsonProcessingException {
ObjectMapper mapper = new ObjectMapper();
@@ -8,7 +8,7 @@ import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
import static org.junit.Assert.assertEquals;
public class JacksonDeserializeTest {
public class JacksonDeserializeUnitTest {
@Test
public void whenSimpleDeserialize_thenCorrect() throws IOException {
@@ -14,7 +14,7 @@ import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JacksonMapDeserializeTest {
public class JacksonMapDeserializeUnitTest {
private Map<MyPair, String> map;
private Map<MyPair, MyPair> cmap;
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JacksonInjectTest {
public class JacksonInjectUnitTest {
@Test
public void whenDeserializingUsingJacksonInject_thenCorrect() throws IOException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonAnySetterTest {
public class JsonAnySetterUnitTest {
@Test
public void whenDeserializingUsingJsonAnySetter_thenCorrect() throws IOException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonCreatorTest {
public class JsonCreatorUnitTest {
@Test
public void whenDeserializingUsingJsonCreator_thenCorrect() throws IOException {
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonDeserializeTest {
public class JsonDeserializeUnitTest {
@Test
public void whenDeserializingUsingJsonDeserialize_thenCorrect() throws IOException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonSetterTest {
public class JsonSetterUnitTest {
@Test
public void whenDeserializingUsingJsonSetter_thenCorrect() throws IOException {
@@ -10,7 +10,7 @@ import org.junit.Test;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JacksonEnumSerializationTest {
public class JacksonEnumSerializationUnitTest {
@Test
public final void givenEnum_whenSerializingJson_thenCorrectRepresentation() throws JsonParseException, IOException {
@@ -17,7 +17,7 @@ import static org.assertj.core.data.Percentage.withPercentage;
* @author Jay Sridhar
* @version 1.0
*/
public class JsonFormatTest {
public class JsonFormatUnitTest {
@Test
public void whenSerializedDateFormat_thenCorrect() throws JsonProcessingException {
@@ -16,7 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonFilterTest {
public class JsonFilterUnitTest {
@Test
public void whenSerializingUsingJsonFilter_thenCorrect() throws JsonProcessingException {
@@ -19,7 +19,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonFormatTest {
public class JsonFormatUnitTest {
@Test
public void whenSerializingUsingJsonFormat_thenCorrect() throws JsonProcessingException, ParseException {
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonIdentityInfoTest {
public class JsonIdentityInfoUnitTest {
@Test
public void whenSerializingUsingJsonIdentityInfo_thenCorrect() throws JsonProcessingException {
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonPropertyTest {
public class JsonPropertyUnitTest {
@Test
public void whenSerializingUsingJsonProperty_thenCorrect() throws JsonProcessingException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonUnwrappedTest {
public class JsonUnwrappedUnitTest {
@Test
public void whenSerializingUsingJsonUnwrapped_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonViewTest {
public class JsonViewUnitTest {
@Test
public void whenSerializingUsingJsonView_andInternalView_thenCorrect() throws JsonProcessingException {
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class ReferenceTest {
public class ReferenceUnitTest {
@Test
public void whenSerializingUsingReference_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonAutoDetectTest {
public class JsonAutoDetectUnitTest {
@Test
public void whenSerializingUsingJsonAutoDetect_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonIgnoreTest {
public class JsonIgnoreUnitTest {
@Test
public void whenSerializingUsingJsonIgnore_thenCorrect() throws JsonProcessingException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonIgnorePropertiesTest {
public class JsonIgnorePropertiesUnitTest {
@Test
public void whenSerializingUsingJsonIgnoreProperties_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonIgnoreTypeTest {
public class JsonIgnoreTypeUnitTest {
@Test
public void whenSerializingUsingJsonIgnoreType_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonIncludeTest {
public class JsonIncludeUnitTest {
@Test
public void whenSerializingUsingJsonInclude_thenCorrect() throws JsonProcessingException {
@@ -15,7 +15,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.introspect.AnnotatedMember;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
public class IgnoranceTest {
public class IgnoranceUnitTest {
private static abstract class CarMixIn {
@JsonIgnore
public String make;
@@ -9,7 +9,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class ItemIdRemovedFromUserTest {
public class ItemIdRemovedFromUserUnitTest {
@Test
public void givenRemoveItemJson_whenDeserialize_shouldHaveProperClassType() throws IOException {
//given
@@ -10,7 +10,7 @@ import java.io.IOException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class SubTypeHandlingTest {
public class SubTypeHandlingUnitTest {
@Test
public void givenSubTypes_whenConvertingObjects_thenDataValuesArePreserved() {
ObjectMapper mapper = new ObjectMapper();
@@ -11,7 +11,7 @@ import java.io.IOException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class TypeInfoInclusionTest {
public class TypeInfoInclusionUnitTest {
@Test
public void givenTypeInfo_whenAnnotatingGlobally_thenTypesAreCorrectlyRecovered() throws IOException {
ObjectMapper mapper = new ObjectMapper();
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class CustomTest {
public class CustomUnitTest {
@Test
public void whenSerializingUsingCustom_thenCorrect() throws JsonProcessingException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class DisableTest {
public class DisableUnitTest {
@Test
public void whenSerializingUsingDisable_thenCorrect() throws JsonProcessingException {
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class MixInTest {
public class MixInUnitTest {
@Test
public void whenSerializingUsingMixIn_thenCorrect() throws JsonProcessingException {
@@ -9,7 +9,7 @@ import java.util.Optional;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class OptionalTypeTest {
public class OptionalTypeUnitTest {
ObjectMapper mapper = new ObjectMapper().registerModule(new Jdk8Module());
@@ -19,7 +19,7 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
public class NodeOperationTest {
public class NodeOperationUnitTest {
private static ObjectMapper mapper = new ObjectMapper();
@Test
@@ -14,7 +14,7 @@ import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
public class TestJavaReadWriteJsonExample {
public class JavaReadWriteJsonExampleUnitTest {
final String EXAMPLE_JSON = "{ \"color\" : \"Black\", \"type\" : \"BMW\" }";
final String LOCAL_JSON = "[{ \"color\" : \"Black\", \"type\" : \"BMW\" }, { \"color\" : \"Red\", \"type\" : \"BMW\" }]";
@@ -18,7 +18,7 @@ import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
public class TestSerializationDeserializationFeature {
public class SerializationDeserializationFeatureUnitTest {
final String EXAMPLE_JSON = "{ \"color\" : \"Black\", \"type\" : \"BMW\" }";
final String JSON_CAR = "{ \"color\" : \"Black\", \"type\" : \"Fiat\", \"year\" : \"1970\" }";
final String JSON_ARRAY = "[{ \"color\" : \"Black\", \"type\" : \"BMW\" }, { \"color\" : \"Red\", \"type\" : \"BMW\" }]";
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class PolymorphismTest {
public class PolymorphismUnitTest {
@Test
public void whenSerializingUsingPolymorphism_thenCorrect() throws JsonProcessingException {
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class SandboxTest {
public class SandboxUnitTest {
@Test
public final void whenDeserializing_thenCorrect() throws JsonParseException, JsonMappingException, IOException {
@@ -12,7 +12,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.MapSerializer;
public class JacksonMapSerializeTest {
public class JacksonMapSerializeUnitTest {
@JsonSerialize(keyUsing = MyPairSerializer.class)
private Map<MyPair, String> map;
@@ -18,7 +18,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
public class JacksonSerializeTest {
public class JacksonSerializeUnitTest {
@Test
public void whenSimpleSerialize_thenCorrect() throws JsonProcessingException, ParseException {
@@ -15,7 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonAnyGetterTest {
public class JsonAnyGetterUnitTest {
@Test
public void whenSerializingUsingJsonAnyGetter_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonGetterTest {
public class JsonGetterUnitTest {
@Test
public void whenSerializingUsingJsonGetter_thenCorrect() throws JsonProcessingException {
@@ -13,7 +13,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonPropertyOrderTest {
public class JsonPropertyOrderUnitTest {
@Test
public void whenSerializingUsingJsonPropertyOrder_thenCorrect() throws JsonProcessingException {
@@ -12,7 +12,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonRawValueTest {
public class JsonRawValueUnitTest {
@Test
public void whenSerializingUsingJsonRawValue_thenCorrect() throws JsonProcessingException {
@@ -14,7 +14,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonRootNameTest {
public class JsonRootNameUnitTest {
@Test
public void whenSerializingUsingJsonRootName_thenCorrect() throws JsonProcessingException {
@@ -16,7 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonSerializeTest {
public class JsonSerializeUnitTest {
@Test
public void whenSerializingUsingJsonSerialize_thenCorrect() throws JsonProcessingException, ParseException {
@@ -12,7 +12,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class JsonValueTest {
public class JsonValueUnitTest {
@Test
public void whenSerializingUsingJsonValue_thenCorrect() throws JsonProcessingException {
@@ -14,7 +14,7 @@ import static junit.framework.Assert.assertNull;
import static junit.framework.Assert.assertTrue;
import static junit.framework.TestCase.assertEquals;
public class JacksonStreamingAPITest {
public class JacksonStreamingAPIUnitTest {
@Test
public void givenJsonGenerator_whenAppendJsonToIt_thenGenerateJson() throws IOException {
@@ -47,7 +47,7 @@ import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
public class JacksonAnnotationTest {
public class JacksonAnnotationUnitTest {
@Test
public void whenSerializingUsingJsonAnyGetter_thenCorrect() throws JsonProcessingException {
@@ -26,7 +26,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JacksonBidirectionRelationTest {
public class JacksonBidirectionRelationUnitTest {
@Test(expected = JsonMappingException.class)
public void givenBidirectionRelation_whenSerializing_thenException() throws JsonProcessingException {
@@ -27,7 +27,7 @@ import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import com.fasterxml.jackson.datatype.jsr310.JSR310Module;
public class JacksonDateTest {
public class JacksonDateUnitTest {
@Test
public void whenSerializingDateWithJackson_thenSerializedToNumber() throws JsonProcessingException, ParseException {
@@ -21,7 +21,7 @@ import com.fasterxml.jackson.databind.SerializationConfig;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.BeanSerializerModifier;
public class JacksonDynamicIgnoreTest {
public class JacksonDynamicIgnoreUnitTest {
private ObjectMapper mapper = new ObjectMapper();
@@ -26,7 +26,7 @@ import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException;
public class JacksonExceptionsTest {
public class JacksonExceptionsUnitTest {
// JsonMappingException: Can not construct instance of
@Test(expected = JsonMappingException.class)
@@ -19,7 +19,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ser.BeanSerializerFactory;
import com.fasterxml.jackson.databind.ser.SerializerFactory;
public class JacksonJsonViewTest {
public class JacksonJsonViewUnitTest {
@Test
public void whenUseJsonViewToSerialize_thenCorrect() throws JsonProcessingException {
@@ -1,7 +1,7 @@
package com.baeldung.jackson.test;
import com.baeldung.jackson.sandbox.JacksonPrettyPrintUnitTest;
import com.baeldung.jackson.sandbox.SandboxTest;
import com.baeldung.jackson.sandbox.SandboxUnitTest;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@@ -14,7 +14,7 @@ import org.junit.runners.Suite;
,JacksonPrettyPrintUnitTest.class
,JacksonSerializationIgnoreUnitTest.class
,JacksonSerializationUnitTest.class
,SandboxTest.class
,SandboxUnitTest.class
,JacksonFieldUnitTest.class
}) // @formatter:on
public class UnitTestSuite {
@@ -15,7 +15,7 @@ import org.junit.Test;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
public class TestXMLSerializeDeserialize {
public class XMLSerializeDeserializeUnitTest {
@Test
public void whenJavaSerializedToXmlStr_thenCorrect() throws JsonProcessingException {