package org.socialsignin.spring.data.dynamodb.repository.support;

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBMarshaller;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.socialsignin.spring.data.dynamodb.domain.sample.User;

@RunWith(MockitoJUnitRunner.class)
@SuppressWarnings("unused")
public class DynamoDBEntityMetadataSupportUnitTest {
	
	@Test
	public void testGetMarshallerForProperty_WhenAnnotationIsOnField_AndReturnsDynamoDBMarshaller()
	{
		DynamoDBEntityMetadataSupport support = new DynamoDBEntityMetadataSupport(User.class);
		DynamoDBMarshaller fieldAnnotation = support.getMarshallerForProperty("joinYear");
		Assert.assertNotNull(fieldAnnotation);
	}

	@Test
	public void testGetMarshallerForProperty_WhenAnnotationIsOnMethod_AndReturnsDynamoDBMarshaller()
	{
		DynamoDBEntityMetadataSupport support = new DynamoDBEntityMetadataSupport(User.class);
		DynamoDBMarshaller methodAnnotation = support.getMarshallerForProperty("leaveDate");
		Assert.assertNotNull(methodAnnotation);
	}
}

@@ -620,32 +620,34 @@
 yMetadataSupport
+%3C%3E
 (User.class);%0A%09%09
@@ -957,16 +957,18 @@
 aSupport
+%3C%3E
 (User.cl

Remove warnings about raw types