diff --git a/spring-data-mongodb-log4j/src/test/java/org/springframework/data/mongodb/log4j/MongoLog4jAppenderUnitTests.java b/spring-data-mongodb-log4j/src/test/java/org/springframework/data/mongodb/log4j/MongoLog4jAppenderUnitTests.java
index 2be86e958..e192fffc3 100644
--- a/spring-data-mongodb-log4j/src/test/java/org/springframework/data/mongodb/log4j/MongoLog4jAppenderUnitTests.java
+++ b/spring-data-mongodb-log4j/src/test/java/org/springframework/data/mongodb/log4j/MongoLog4jAppenderUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,10 +24,7 @@ import org.junit.Test;
*/
public class MongoLog4jAppenderUnitTests {
- /**
- * @see DATAMONGO-641
- */
- @Test
+ @Test // DATAMONGO-641
public void closesWithoutMongoInstancePresent() {
new MongoLog4jAppender().close();
}
diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java
index 7047995a3..bb78d33fe 100644
--- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java
+++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java
@@ -328,7 +328,7 @@ public class MappingMongoConverter extends AbstractMongoConverter implements App
Assert.isTrue(annotation != null, "The referenced property has to be mapped with @DBRef!");
}
- // @see DATAMONGO-913
+ // DATAMONGO-913
if (object instanceof LazyLoadingProxy) {
return ((LazyLoadingProxy) object).toDBRef();
}
diff --git a/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackage.java b/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackage.java
index 4a77bc00e..45ae3b790 100644
--- a/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackage.java
+++ b/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackage.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@ import com.mongodb.MongoClient;
/**
* Sample configuration class in default package.
*
- * @see DATAMONGO-877
* @author Oliver Gierke
*/
@Configuration
diff --git a/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackageUnitTests.java b/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackageUnitTests.java
index f9b9a78ca..4e8b9f25d 100644
--- a/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackageUnitTests.java
+++ b/spring-data-mongodb/src/test/java/ConfigClassInDefaultPackageUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2014 the original author or authors.
+ * Copyright 2014-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,15 +19,11 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
/**
* Unit test for {@link ConfigClassInDefaultPackage}.
*
- * @see DATAMONGO-877
* @author Oliver Gierke
*/
public class ConfigClassInDefaultPackageUnitTests {
- /**
- * @see DATAMONGO-877
- */
- @Test
+ @Test // DATAMONGO-877
public void loadsConfigClassFromDefaultPackage() {
new AnnotationConfigApplicationContext(ConfigClassInDefaultPackage.class).close();
}
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AbstractMongoConfigurationUnitTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AbstractMongoConfigurationUnitTests.java
index 2bb1bd0a0..bc9a3e216 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AbstractMongoConfigurationUnitTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AbstractMongoConfigurationUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2016 the original author or authors.
+ * Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -55,10 +55,7 @@ public class AbstractMongoConfigurationUnitTests {
@Rule public ExpectedException exception = ExpectedException.none();
- /**
- * @see DATAMONGO-496
- */
- @Test
+ @Test // DATAMONGO-496
public void usesConfigClassPackageAsBaseMappingPackage() throws ClassNotFoundException {
AbstractMongoConfiguration configuration = new SampleMongoConfiguration();
@@ -67,30 +64,21 @@ public class AbstractMongoConfigurationUnitTests {
assertThat(configuration.getInitialEntitySet(), hasItem(Entity.class));
}
- /**
- * @see DATAMONGO-496
- */
- @Test
+ @Test // DATAMONGO-496
public void doesNotScanPackageIfMappingPackageIsNull() throws ClassNotFoundException {
assertScanningDisabled(null);
}
- /**
- * @see DATAMONGO-496
- */
- @Test
+ @Test // DATAMONGO-496
public void doesNotScanPackageIfMappingPackageIsEmpty() throws ClassNotFoundException {
assertScanningDisabled("");
assertScanningDisabled(" ");
}
- /**
- * @see DATAMONGO-569
- */
- @Test
+ @Test // DATAMONGO-569
public void containsMongoDbFactoryButNoMongoBean() {
AbstractApplicationContext context = new AnnotationConfigApplicationContext(SampleMongoConfiguration.class);
@@ -113,10 +101,7 @@ public class AbstractMongoConfigurationUnitTests {
assertThat(context.getPersistentEntities(), is(not(emptyIterable())));
}
- /**
- * @see DATAMONGO-717
- */
- @Test
+ @Test // DATAMONGO-717
public void lifecycleCallbacksAreInvokedInAppropriateOrder() {
AbstractApplicationContext context = new AnnotationConfigApplicationContext(SampleMongoConfiguration.class);
@@ -128,10 +113,7 @@ public class AbstractMongoConfigurationUnitTests {
context.close();
}
- /**
- * @see DATAMONGO-725
- */
- @Test
+ @Test // DATAMONGO-725
public void shouldBeAbleToConfigureCustomTypeMapperViaJavaConfig() {
AbstractApplicationContext context = new AnnotationConfigApplicationContext(SampleMongoConfiguration.class);
@@ -143,18 +125,12 @@ public class AbstractMongoConfigurationUnitTests {
context.close();
}
- /**
- * @see DATAMONGO-789
- */
- @Test
+ @Test // DATAMONGO-789
public void authenticationDatabaseShouldDefaultToNull() {
assertThat(new SampleMongoConfiguration().getAuthenticationDatabaseName(), is(nullValue()));
}
- /**
- * @see DATAMONGO-1470
- */
- @Test
+ @Test // DATAMONGO-1470
@SuppressWarnings("unchecked")
public void allowsMultipleEntityBasePackages() throws ClassNotFoundException {
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingIntegrationTests.java
index 47cee10e5..fe84ccb3a 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2015 the original author or authors.
+ * Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,10 +35,7 @@ import org.springframework.data.mongodb.core.mapping.event.BeforeConvertEvent;
*/
public class AuditingIntegrationTests {
- /**
- * @see DATAMONGO-577, DATAMONGO-800, DATAMONGO-883
- */
- @Test
+ @Test // DATAMONGO-577, DATAMONGO-800, DATAMONGO-883
public void enablesAuditingAndSetsPropertiesAccordingly() throws Exception {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("auditing.xml", getClass());
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingViaJavaConfigRepositoriesTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingViaJavaConfigRepositoriesTests.java
index 288e09cb9..7f7bc5eeb 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingViaJavaConfigRepositoriesTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/AuditingViaJavaConfigRepositoriesTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013-2016 the original author or authors.
+ * Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -79,10 +79,7 @@ public class AuditingViaJavaConfigRepositoriesTests {
this.auditor = auditablePersonRepository.save(new AuditablePerson("auditor"));
}
- /**
- * @see DATAMONGO-792, DATAMONGO-883
- */
- @Test
+ @Test // DATAMONGO-792, DATAMONGO-883
public void basicAuditing() {
doReturn(this.auditor).when(this.auditorAware).getCurrentAuditor();
@@ -96,19 +93,13 @@ public class AuditingViaJavaConfigRepositoriesTests {
assertThat(savedUser.getCreatedAt(), is(notNullValue()));
}
- /**
- * @see DATAMONGO-843
- */
- @Test
+ @Test // DATAMONGO-843
@SuppressWarnings("resource")
public void auditingUsesFallbackMappingContextIfNoneConfiguredWithRepositories() {
new AnnotationConfigApplicationContext(SimpleConfigWithRepositories.class);
}
- /**
- * @see DATAMONGO-843
- */
- @Test
+ @Test // DATAMONGO-843
@SuppressWarnings("resource")
public void auditingUsesFallbackMappingContextIfNoneConfigured() {
new AnnotationConfigApplicationContext(SimpleConfig.class);
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/GeoJsonConfigurationIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/GeoJsonConfigurationIntegrationTests.java
index 7efa80677..bed30fc8b 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/GeoJsonConfigurationIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/GeoJsonConfigurationIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 the original author or authors.
+ * Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,10 +43,7 @@ public class GeoJsonConfigurationIntegrationTests {
@Autowired GeoJsonModule geoJsonModule;
- /**
- * @see DATAMONGO-1181
- */
- @Test
+ @Test // DATAMONGO-1181
public void picksUpGeoJsonModuleConfigurationByDefault() {
assertThat(geoJsonModule, is(notNullValue()));
}
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserIntegrationTests.java
index 5082cc3ae..6910aff4f 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2011-2014 the original author or authors.
+ * Copyright 2011-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,10 +58,7 @@ public class MappingMongoConverterParserIntegrationTests {
DefaultListableBeanFactory factory;
- /**
- * @see DATAMONGO-243
- */
- @Test
+ @Test // DATAMONGO-243
public void allowsDbFactoryRefAttribute() {
loadValidConfiguration();
@@ -69,10 +66,7 @@ public class MappingMongoConverterParserIntegrationTests {
factory.getBean("converter");
}
- /**
- * @see DATAMONGO-725
- */
- @Test
+ @Test // DATAMONGO-725
public void hasCustomTypeMapper() {
loadValidConfiguration();
@@ -82,10 +76,7 @@ public class MappingMongoConverterParserIntegrationTests {
assertThat(converter.getTypeMapper(), is(customMongoTypeMapper));
}
- /**
- * @see DATAMONGO-301
- */
- @Test
+ @Test // DATAMONGO-301
public void scansForConverterAndSetsUpCustomConversionsAccordingly() {
loadValidConfiguration();
@@ -94,10 +85,7 @@ public class MappingMongoConverterParserIntegrationTests {
assertThat(conversions.hasCustomWriteTarget(Account.class), is(true));
}
- /**
- * @see DATAMONGO-607
- */
- @Test
+ @Test // DATAMONGO-607
public void activatesAbbreviatingPropertiesCorrectly() {
loadValidConfiguration();
@@ -109,10 +97,7 @@ public class MappingMongoConverterParserIntegrationTests {
assertThat(strategy.getBeanClassName(), is(CamelCaseAbbreviatingFieldNamingStrategy.class.getName()));
}
- /**
- * @see DATAMONGO-866
- */
- @Test
+ @Test // DATAMONGO-866
public void rejectsInvalidFieldNamingStrategyConfiguration() {
exception.expect(BeanDefinitionParsingException.class);
@@ -124,10 +109,7 @@ public class MappingMongoConverterParserIntegrationTests {
reader.loadBeanDefinitions(new ClassPathResource("namespace/converter-invalid.xml"));
}
- /**
- * @see DATAMONGO-892
- */
- @Test
+ @Test // DATAMONGO-892
public void shouldThrowBeanDefinitionParsingExceptionIfConverterDefinedAsNestedBean() {
exception.expect(BeanDefinitionParsingException.class);
@@ -136,18 +118,12 @@ public class MappingMongoConverterParserIntegrationTests {
loadNestedBeanConfiguration();
}
- /**
- * @see DATAMONGO-925, DATAMONGO-928
- */
- @Test
+ @Test // DATAMONGO-925, DATAMONGO-928
public void shouldSupportCustomFieldNamingStrategy() {
assertStrategyReferenceSetFor("mappingConverterWithCustomFieldNamingStrategy");
}
- /**
- * @see DATAMONGO-925, DATAMONGO-928
- */
- @Test
+ @Test // DATAMONGO-925, DATAMONGO-928
public void shouldNotFailLoadingConfigIfAbbreviationIsDisabledAndStrategySet() {
assertStrategyReferenceSetFor("mappingConverterWithCustomFieldNamingStrategyAndAbbreviationDisabled");
}
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserValidationIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserValidationIntegrationTests.java
index d9f34df89..dda529991 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserValidationIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MappingMongoConverterParserValidationIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2014 the original author or authors.
+ * Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,6 @@ import org.springframework.core.io.ClassPathResource;
* {@link org.springframework.data.mongodb.core.mapping.event.ValidatingMongoEventListener} by defining
* {@code } in context XML.
*
- * @see DATAMONGO-36
* @author Maciej Walkowiak
* @author Thomas Darimont
* @author Oliver Gierke
@@ -47,40 +46,28 @@ public class MappingMongoConverterParserValidationIntegrationTests {
reader = new XmlBeanDefinitionReader(factory);
}
- /**
- * @see DATAMONGO-36
- */
- @Test
+ @Test // DATAMONGO-36
public void validatingEventListenerCreatedWithDefaultConfig() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/converter-default.xml"));
assertThat(factory.getBean(BeanNames.VALIDATING_EVENT_LISTENER_BEAN_NAME), is(not(nullValue())));
}
- /**
- * @see DATAMONGO-36
- */
- @Test
+ @Test // DATAMONGO-36
public void validatingEventListenerCreatedWhenValidationEnabled() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/converter-validation-enabled.xml"));
assertThat(factory.getBean(BeanNames.VALIDATING_EVENT_LISTENER_BEAN_NAME), is(not(nullValue())));
}
- /**
- * @see DATAMONGO-36
- */
- @Test(expected = NoSuchBeanDefinitionException.class)
+ @Test(expected = NoSuchBeanDefinitionException.class) // DATAMONGO-36
public void validatingEventListenersIsNotCreatedWhenDisabled() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/converter-validation-disabled.xml"));
factory.getBean(BeanNames.VALIDATING_EVENT_LISTENER_BEAN_NAME);
}
- /**
- * @see DATAMONGO-36
- */
- @Test
+ @Test // DATAMONGO-36
public void validatingEventListenerCreatedWithCustomTypeMapperConfig() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/converter-custom-typeMapper.xml"));
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoAuditingRegistrarUnitTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoAuditingRegistrarUnitTests.java
index ad076c90d..c918433ef 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoAuditingRegistrarUnitTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoAuditingRegistrarUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 the original author or authors.
+ * Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,6 @@ import org.springframework.core.type.AnnotationMetadata;
/**
* Unit tests for {@link JpaAuditingRegistrar}.
*
- * @see DATAMONGO-792
* @author Oliver Gierke
*/
@RunWith(MockitoJUnitRunner.class)
@@ -36,12 +35,12 @@ public class MongoAuditingRegistrarUnitTests {
@Mock AnnotationMetadata metadata;
@Mock BeanDefinitionRegistry registry;
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-792
public void rejectsNullAnnotationMetadata() {
registrar.registerBeanDefinitions(null, registry);
}
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-792
public void rejectsNullBeanDefinitionRegistry() {
registrar.registerBeanDefinitions(metadata, null);
}
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoClientParserIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoClientParserIntegrationTests.java
index a2abd7c6e..b3f9c0541 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoClientParserIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoClientParserIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 the original author or authors.
+ * Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -51,10 +51,7 @@ public class MongoClientParserIntegrationTests {
this.reader = new XmlBeanDefinitionReader(factory);
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void createsMongoClientCorrectlyWhenGivenHostAndPort() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongoClient-bean.xml"));
@@ -62,10 +59,7 @@ public class MongoClientParserIntegrationTests {
assertThat(factory.getBean("mongo-client-with-host-and-port"), instanceOf(MongoClient.class));
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void createsMongoClientWithOptionsCorrectly() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongoClient-bean.xml"));
@@ -84,10 +78,7 @@ public class MongoClientParserIntegrationTests {
}
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void createsMongoClientWithDefaultsCorrectly() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongoClient-bean.xml"));
@@ -105,10 +96,7 @@ public class MongoClientParserIntegrationTests {
}
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void createsMongoClientWithCredentialsCorrectly() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongoClient-bean.xml"));
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoCredentialPropertyEditorUnitTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoCredentialPropertyEditorUnitTests.java
index ba9257cbe..bcebbce44 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoCredentialPropertyEditorUnitTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoCredentialPropertyEditorUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 the original author or authors.
+ * Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -75,10 +75,7 @@ public class MongoCredentialPropertyEditorUnitTests {
this.editor = new MongoCredentialPropertyEditor();
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void shouldReturnNullValueForNullText() {
editor.setAsText(null);
@@ -86,10 +83,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat(editor.getValue(), nullValue());
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void shouldReturnNullValueForEmptyText() {
editor.setAsText(" ");
@@ -97,26 +91,17 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat(editor.getValue(), nullValue());
}
- /**
- * @see DATAMONGO-1158
- */
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-1158
public void shouldThrowExceptionForMalformatedCredentialsString() {
editor.setAsText("tyrion");
}
- /**
- * @see DATAMONGO-1158
- */
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-1158
public void shouldThrowExceptionForMalformatedAuthMechanism() {
editor.setAsText(USER_2_AUTH_STRING + "?uri.authMechanism=Targaryen");
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenSingleUserNamePasswordStringWithDatabaseAndNoOptions() {
@@ -125,10 +110,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_1_CREDENTIALS));
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenSingleUserNamePasswordStringWithDatabaseAndAuthOptions() {
@@ -137,10 +119,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_1_CREDENTIALS_PLAIN_AUTH));
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenMultipleUserNamePasswordStringWithDatabaseAndNoOptions() {
@@ -150,10 +129,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_1_CREDENTIALS, USER_2_CREDENTIALS));
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenMultipleUserNamePasswordStringWithDatabaseAndAuthOptions() {
@@ -164,10 +140,7 @@ public class MongoCredentialPropertyEditorUnitTests {
contains(USER_1_CREDENTIALS_PLAIN_AUTH, USER_2_CREDENTIALS_CR_AUTH));
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenMultipleUserNamePasswordStringWithDatabaseAndMixedOptions() {
@@ -177,10 +150,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_1_CREDENTIALS_PLAIN_AUTH, USER_2_CREDENTIALS));
}
- /**
- * @see DATAMONGO-1257
- */
- @Test
+ @Test // DATAMONGO-1257
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenMultipleQuotedUserNamePasswordStringWithDatabaseAndNoOptions() {
@@ -190,10 +160,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_1_CREDENTIALS, USER_2_CREDENTIALS));
}
- /**
- * @see DATAMONGO-1257
- */
- @Test
+ @Test // DATAMONGO-1257
@SuppressWarnings("unchecked")
public void shouldReturnCredentialsValueCorrectlyWhenGivenSingleQuotedUserNamePasswordStringWithDatabaseAndNoOptions() {
@@ -202,10 +169,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_1_CREDENTIALS));
}
- /**
- * @see DATAMONGO-1257
- */
- @Test
+ @Test // DATAMONGO-1257
@SuppressWarnings("unchecked")
public void shouldReturnX509CredentialsCorrectly() {
@@ -214,10 +178,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(USER_3_CREDENTIALS_X509_AUTH));
}
- /**
- * @see DATAMONGO-1257
- */
- @Test
+ @Test // DATAMONGO-1257
@SuppressWarnings("unchecked")
public void shouldReturnX509CredentialsCorrectlyWhenNoDbSpecified() {
@@ -226,10 +187,7 @@ public class MongoCredentialPropertyEditorUnitTests {
assertThat((List) editor.getValue(), contains(MongoCredential.createMongoX509Credential("tyrion")));
}
- /**
- * @see DATAMONGO-1257
- */
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-1257
public void shouldThrowExceptionWhenNoDbSpecifiedForMongodbCR() {
editor.setAsText("tyrion?uri.authMechanism=MONGODB-CR");
@@ -237,10 +195,7 @@ public class MongoCredentialPropertyEditorUnitTests {
editor.getValue();
}
- /**
- * @see DATAMONGO-1257
- */
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-1257
public void shouldThrowExceptionWhenDbIsEmptyForMongodbCR() {
editor.setAsText("tyrion@?uri.authMechanism=MONGODB-CR");
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryNoDatabaseRunningTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryNoDatabaseRunningTests.java
index 6e0972c5d..c364fdc5f 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryNoDatabaseRunningTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryNoDatabaseRunningTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2011-2014 the original author or authors.
+ * Copyright 2011-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,10 +39,7 @@ public class MongoDbFactoryNoDatabaseRunningTests {
@Autowired MongoTemplate mongoTemplate;
- /**
- * @see DATAMONGO-139
- */
- @Test
+ @Test // DATAMONGO-139
public void startsUpWithoutADatabaseRunning() {
assertThat(mongoTemplate.getClass().getName(), is("org.springframework.data.mongodb.core.MongoTemplate"));
}
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryParserIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryParserIntegrationTests.java
index a98a2c06d..3f013ac20 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryParserIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoDbFactoryParserIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2011-2015 the original author or authors.
+ * Copyright 2011-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -91,10 +91,7 @@ public class MongoDbFactoryParserIntegrationTests {
assertWriteConcern(ctx, new WriteConcern("rack1"));
}
- /**
- * @see DATAMONGO-331
- */
- @Test
+ @Test // DATAMONGO-331
public void readsReplicasWriteConcernCorrectly() {
AbstractApplicationContext ctx = new ClassPathXmlApplicationContext(
@@ -122,10 +119,7 @@ public class MongoDbFactoryParserIntegrationTests {
factory.getBean("first");
}
- /**
- * @see DATAMONGO-280
- */
- @Test
+ @Test // DATAMONGO-280
@SuppressWarnings("deprecation")
public void parsesMaxAutoConnectRetryTimeCorrectly() {
@@ -134,10 +128,7 @@ public class MongoDbFactoryParserIntegrationTests {
assertThat(ReflectiveMongoOptionsInvokerTestUtil.getMaxAutoConnectRetryTime(mongo.getMongoOptions()), is(27L));
}
- /**
- * @see DATAMONGO-295
- */
- @Test
+ @Test // DATAMONGO-295
public void setsUpMongoDbFactoryUsingAMongoUri() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-uri.xml"));
@@ -149,10 +140,7 @@ public class MongoDbFactoryParserIntegrationTests {
assertThat(argument, is(notNullValue()));
}
- /**
- * @see DATAMONGO-306
- */
- @Test
+ @Test // DATAMONGO-306
public void setsUpMongoDbFactoryUsingAMongoUriWithoutCredentials() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-uri-no-credentials.xml"));
@@ -168,18 +156,12 @@ public class MongoDbFactoryParserIntegrationTests {
assertThat(db.getName(), is("database"));
}
- /**
- * @see DATAMONGO-295
- */
- @Test(expected = BeanDefinitionParsingException.class)
+ @Test(expected = BeanDefinitionParsingException.class) // DATAMONGO-295
public void rejectsUriPlusDetailedConfiguration() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-uri-and-details.xml"));
}
- /**
- * @see DATAMONGO-1218
- */
- @Test
+ @Test // DATAMONGO-1218
public void setsUpMongoDbFactoryUsingAMongoClientUri() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-client-uri.xml"));
@@ -191,18 +173,12 @@ public class MongoDbFactoryParserIntegrationTests {
assertThat(argument, is(notNullValue()));
}
- /**
- * @see DATAMONGO-1218
- */
- @Test(expected = BeanDefinitionParsingException.class)
+ @Test(expected = BeanDefinitionParsingException.class) // DATAMONGO-1218
public void rejectsClientUriPlusDetailedConfiguration() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-client-uri-and-details.xml"));
}
- /**
- * @see DATAMONGO-1293
- */
- @Test
+ @Test // DATAMONGO-1293
public void setsUpClientUriWithId() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-client-uri-and-id.xml"));
@@ -214,10 +190,7 @@ public class MongoDbFactoryParserIntegrationTests {
assertThat(argument, is(notNullValue()));
}
- /**
- * @see DATAMONGO-1293
- */
- @Test
+ @Test // DATAMONGO-1293
public void setsUpUriWithId() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-uri-and-id.xml"));
@@ -229,18 +202,12 @@ public class MongoDbFactoryParserIntegrationTests {
assertThat(argument, is(notNullValue()));
}
- /**
- * @see DATAMONGO-1293
- */
- @Test(expected = BeanDefinitionParsingException.class)
+ @Test(expected = BeanDefinitionParsingException.class) // DATAMONGO-1293
public void rejectsClientUriPlusDetailedConfigurationAndWriteConcern() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-client-uri-write-concern-and-details.xml"));
}
- /**
- * @see DATAMONGO-1293
- */
- @Test(expected = BeanDefinitionParsingException.class)
+ @Test(expected = BeanDefinitionParsingException.class) // DATAMONGO-1293
public void rejectsUriPlusDetailedConfigurationAndWriteConcern() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-client-uri-write-concern-and-details.xml"));
}
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoNamespaceTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoNamespaceTests.java
index 2debb0afc..1b6463046 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoNamespaceTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoNamespaceTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2010-2015 the original author or authors.
+ * Copyright 2010-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -90,10 +90,7 @@ public class MongoNamespaceTests {
options.getSocketFactory() instanceof SSLSocketFactory);
}
- /**
- * @see DATAMONGO-764
- */
- @Test
+ @Test // DATAMONGO-764
public void testMongoSingletonWithSslEnabled() throws Exception {
assertTrue(ctx.containsBean("mongoSsl"));
@@ -103,10 +100,7 @@ public class MongoNamespaceTests {
assertTrue("socketFactory should be a SSLSocketFactory", options.getSocketFactory() instanceof SSLSocketFactory);
}
- /**
- * @see DATAMONGO-1490
- */
- @Test
+ @Test // DATAMONGO-1490
public void testMongoClientSingletonWithSslEnabled() {
assertTrue(ctx.containsBean("mongoClientSsl"));
@@ -116,10 +110,7 @@ public class MongoNamespaceTests {
assertTrue("socketFactory should be a SSLSocketFactory", options.getSocketFactory() instanceof SSLSocketFactory);
}
- /**
- * @see DATAMONGO-764
- */
- @Test
+ @Test // DATAMONGO-764
public void testMongoSingletonWithSslEnabledAndCustomSslSocketFactory() throws Exception {
assertTrue(ctx.containsBean("mongoSslWithCustomSslFactory"));
@@ -145,10 +136,7 @@ public class MongoNamespaceTests {
assertEquals("database", getField(dbf, "databaseName"));
}
- /**
- * @see DATAMONGO-789
- */
- @Test
+ @Test // DATAMONGO-789
public void testThirdMongoDbFactory() {
assertTrue(ctx.containsBean("thirdMongoDbFactory"));
@@ -163,10 +151,7 @@ public class MongoNamespaceTests {
assertEquals("admin", getField(dbf, "authenticationDatabaseName"));
}
- /**
- * @see DATAMONGO-140
- */
- @Test
+ @Test // DATAMONGO-140
public void testMongoTemplateFactory() {
assertTrue(ctx.containsBean("mongoTemplate"));
@@ -179,10 +164,7 @@ public class MongoNamespaceTests {
assertNotNull(converter);
}
- /**
- * @see DATAMONGO-140
- */
- @Test
+ @Test // DATAMONGO-140
public void testSecondMongoTemplateFactory() {
assertTrue(ctx.containsBean("anotherMongoTemplate"));
@@ -195,10 +177,7 @@ public class MongoNamespaceTests {
assertEquals(WriteConcern.SAFE, writeConcern);
}
- /**
- * @see DATAMONGO-628
- */
- @Test
+ @Test // DATAMONGO-628
public void testGridFsTemplateFactory() {
assertTrue(ctx.containsBean("gridFsTemplate"));
@@ -211,10 +190,7 @@ public class MongoNamespaceTests {
assertNotNull(converter);
}
- /**
- * @see DATAMONGO-628
- */
- @Test
+ @Test // DATAMONGO-628
public void testSecondGridFsTemplateFactory() {
assertTrue(ctx.containsBean("secondGridFsTemplate"));
@@ -228,10 +204,7 @@ public class MongoNamespaceTests {
assertNotNull(converter);
}
- /**
- * @see DATAMONGO-823
- */
- @Test
+ @Test // DATAMONGO-823
public void testThirdGridFsTemplateFactory() {
assertTrue(ctx.containsBean("thirdGridFsTemplate"));
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoParserIntegrationTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoParserIntegrationTests.java
index 0ca28717e..b8d1b525d 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoParserIntegrationTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/MongoParserIntegrationTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2011 the original author or authors.
+ * Copyright 2011-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -62,10 +62,7 @@ public class MongoParserIntegrationTests {
factory.getBean("mongo");
}
- /**
- * @see DATAMONGO-343
- */
- @Test
+ @Test // DATAMONGO-343
public void readsServerAddressesCorrectly() {
reader.loadBeanDefinitions(new ClassPathResource("namespace/mongo-bean.xml"));
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ReadPreferencePropertyEditorUnitTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ReadPreferencePropertyEditorUnitTests.java
index 6f8f0c954..a334dbab8 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ReadPreferencePropertyEditorUnitTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ReadPreferencePropertyEditorUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 the original author or authors.
+ * Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,10 +41,7 @@ public class ReadPreferencePropertyEditorUnitTests {
editor = new ReadPreferencePropertyEditor();
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void shouldThrowExceptionOnUndefinedPreferenceString() {
expectedException.expect(IllegalArgumentException.class);
@@ -54,10 +51,7 @@ public class ReadPreferencePropertyEditorUnitTests {
editor.setAsText("foo");
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void shouldAllowUsageNativePreferenceStrings() {
editor.setAsText("secondary");
@@ -65,10 +59,7 @@ public class ReadPreferencePropertyEditorUnitTests {
assertThat(editor.getValue(), is((Object) ReadPreference.secondary()));
}
- /**
- * @see DATAMONGO-1158
- */
- @Test
+ @Test // DATAMONGO-1158
public void shouldAllowUsageOfUppcaseEnumStringsForPreferences() {
editor.setAsText("NEAREST");
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ServerAddressPropertyEditorUnitTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ServerAddressPropertyEditorUnitTests.java
index 19565433c..34fa52a86 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ServerAddressPropertyEditorUnitTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/config/ServerAddressPropertyEditorUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2014 the original author or authors.
+ * Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -48,11 +48,7 @@ public class ServerAddressPropertyEditorUnitTests {
editor = new ServerAddressPropertyEditor();
}
- /**
- * @see DATAMONGO-454
- * @see DATAMONGO-1062
- */
- @Test(expected = IllegalArgumentException.class)
+ @Test(expected = IllegalArgumentException.class) // DATAMONGO-454, DATAMONGO-1062
public void rejectsAddressConfigWithoutASingleParsableAndResolvableServerAddress() {
String unknownHost1 = "gugu.nonexistant.example.org";
@@ -63,40 +59,28 @@ public class ServerAddressPropertyEditorUnitTests {
editor.setAsText(unknownHost1 + "," + unknownHost2);
}
- /**
- * @see DATAMONGO-454
- */
- @Test
+ @Test // DATAMONGO-454
public void skipsUnparsableAddressIfAtLeastOneIsParsable() throws UnknownHostException {
editor.setAsText("foo, localhost");
assertSingleAddressOfLocalhost(editor.getValue());
}
- /**
- * @see DATAMONGO-454
- */
- @Test
+ @Test // DATAMONGO-454
public void handlesEmptyAddressAsParseError() throws UnknownHostException {
editor.setAsText(", localhost");
assertSingleAddressOfLocalhost(editor.getValue());
}
- /**
- * @see DATAMONGO-693
- */
- @Test
+ @Test // DATAMONGO-693
public void interpretEmptyStringAsNull() {
editor.setAsText("");
assertNull(editor.getValue());
}
- /**
- * @see DATAMONGO-808
- */
- @Test
+ @Test // DATAMONGO-808
public void handleIPv6HostaddressLoopbackShort() throws UnknownHostException {
String hostAddress = "::1";
@@ -105,10 +89,7 @@ public class ServerAddressPropertyEditorUnitTests {
assertSingleAddressWithPort(hostAddress, null, editor.getValue());
}
- /**
- * @see DATAMONGO-808
- */
- @Test
+ @Test // DATAMONGO-808
public void handleIPv6HostaddressLoopbackShortWithPort() throws UnknownHostException {
String hostAddress = "::1";
@@ -120,10 +101,8 @@ public class ServerAddressPropertyEditorUnitTests {
/**
* Here we detect no port since the last segment of the address contains leading zeros.
- *
- * @see DATAMONGO-808
*/
- @Test
+ @Test // DATAMONGO-808
public void handleIPv6HostaddressLoopbackLong() throws UnknownHostException {
String hostAddress = "0000:0000:0000:0000:0000:0000:0000:0001";
@@ -132,10 +111,7 @@ public class ServerAddressPropertyEditorUnitTests {
assertSingleAddressWithPort(hostAddress, null, editor.getValue());
}
- /**
- * @see DATAMONGO-808
- */
- @Test
+ @Test // DATAMONGO-808
public void handleIPv6HostaddressLoopbackLongWithBrackets() throws UnknownHostException {
String hostAddress = "[0000:0000:0000:0000:0000:0000:0000:0001]";
@@ -146,10 +122,8 @@ public class ServerAddressPropertyEditorUnitTests {
/**
* We can't tell whether the last part of the hostAddress represents a port or not.
- *
- * @see DATAMONGO-808
*/
- @Test
+ @Test // DATAMONGO-808
public void shouldFailToHandleAmbiguousIPv6HostaddressLongWithoutPortAndWithoutBrackets() throws UnknownHostException {
expectedException.expect(IllegalArgumentException.class);
@@ -158,10 +132,7 @@ public class ServerAddressPropertyEditorUnitTests {
editor.setAsText(hostAddress);
}
- /**
- * @see DATAMONGO-808
- */
- @Test
+ @Test // DATAMONGO-808
public void handleIPv6HostaddressExampleAddressWithPort() throws UnknownHostException {
String hostAddress = "0000:0000:0000:0000:0000:0000:0000:0001";
@@ -171,10 +142,7 @@ public class ServerAddressPropertyEditorUnitTests {
assertSingleAddressWithPort(hostAddress, port, editor.getValue());
}
- /**
- * @see DATAMONGO-808
- */
- @Test
+ @Test // DATAMONGO-808
public void handleIPv6HostaddressExampleAddressInBracketsWithPort() throws UnknownHostException {
String hostAddress = "[0000:0000:0000:0000:0000:0000:0000:0001]";
diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/CloseableIterableCursorAdapterUnitTests.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/CloseableIterableCursorAdapterUnitTests.java
index 1ac451b61..daca6484f 100644
--- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/CloseableIterableCursorAdapterUnitTests.java
+++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/CloseableIterableCursorAdapterUnitTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 the original author or authors.
+ * Copyright 2015-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,7 +33,6 @@ import com.mongodb.Cursor;
* Unit tests for {@link CloseableIterableCursorAdapter}.
*
* @author Oliver Gierke
- * @see DATAMONGO-1276
*/
@RunWith(MockitoJUnitRunner.class)
public class CloseableIterableCursorAdapterUnitTests {
@@ -51,30 +50,21 @@ public class CloseableIterableCursorAdapterUnitTests {
this.adapter = new CloseableIterableCursorAdapter