Change Test Names
Closes gh-746
This commit is contained in:
@@ -28,7 +28,7 @@ import java.util.Arrays;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class IncludeCheckRemotePluginTest {
|
||||
class IncludeCheckRemotePluginTests {
|
||||
|
||||
Project rootProject;
|
||||
|
||||
@@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Rob Winch
|
||||
*/
|
||||
public class IntegrationPluginTest {
|
||||
public class IntegrationPluginTests {
|
||||
Project rootProject;
|
||||
|
||||
@AfterEach
|
||||
@@ -12,7 +12,7 @@ import java.nio.file.Path;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class IntegrationTestPluginITest {
|
||||
public class IntegrationTestPluginITests {
|
||||
private io.spring.gradle.TestKit testKit;
|
||||
|
||||
@BeforeEach
|
||||
@@ -11,7 +11,7 @@ import java.nio.file.Path;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class JacocoPluginITest{
|
||||
public class JacocoPluginITests{
|
||||
private io.spring.gradle.TestKit testKit;
|
||||
|
||||
@BeforeEach
|
||||
@@ -14,7 +14,7 @@ import java.nio.file.Path;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class JavadocApiPluginITest {
|
||||
public class JavadocApiPluginITests {
|
||||
private TestKit testKit;
|
||||
|
||||
@BeforeEach
|
||||
@@ -29,7 +29,7 @@ import org.junit.jupiter.api.Test;
|
||||
/**
|
||||
* @author Rob Winch
|
||||
*/
|
||||
public class JavadocApiPluginTest {
|
||||
public class JavadocApiPluginTests {
|
||||
Project rootProject;
|
||||
|
||||
@AfterEach
|
||||
@@ -14,7 +14,7 @@ import java.nio.file.Path;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class ShowcaseITest {
|
||||
public class ShowcaseITests {
|
||||
private TestKit testKit;
|
||||
|
||||
@BeforeEach
|
||||
@@ -15,7 +15,7 @@ import java.util.LinkedHashMap;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SpringMavenPluginITest {
|
||||
public class SpringMavenPluginITests {
|
||||
|
||||
private TestKit testKit;
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.nio.file.Path;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class TestsConfigurationPluginITest {
|
||||
public class TestsConfigurationPluginITests {
|
||||
|
||||
private TestKit testKit;
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.mockito.Mock;
|
||||
import org.mockito.junit.jupiter.MockitoExtension;
|
||||
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
public class UtilsTest {
|
||||
public class UtilsTests {
|
||||
@Mock
|
||||
Project project;
|
||||
@Mock
|
||||
@@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class TransitiveDependencyLookupUtilsTest {
|
||||
public class TransitiveDependencyLookupUtilsTests {
|
||||
|
||||
@Test
|
||||
public void lookupJwtVersionWhen93Then961() {
|
||||
@@ -3,7 +3,7 @@ package sample;
|
||||
import org.junit.Test;
|
||||
import org.springframework.core.Ordered;
|
||||
|
||||
public class TheTest {
|
||||
public class TheTests {
|
||||
@Test
|
||||
public void compilesAndRuns() {
|
||||
Ordered ordered = new Ordered() {
|
||||
@@ -13,4 +13,4 @@ public class TheTest {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,9 +3,9 @@ package sample;
|
||||
import org.junit.Test;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
public class TheTest {
|
||||
public class TheTests {
|
||||
@Test
|
||||
public void compilesAndRuns() {
|
||||
HttpServletRequest request = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class TheClassTest {
|
||||
public class TheClassTests {
|
||||
TheClass theClass = new TheClass();
|
||||
|
||||
@Test
|
||||
@@ -16,4 +16,4 @@ public class TheClassTest {
|
||||
public void doStuffWhenTrueThenFalse() {
|
||||
assertFalse(theClass.doStuff(false));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ package api;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class ApiTest {
|
||||
public class ApiTests {
|
||||
|
||||
@Test
|
||||
public void api() {}
|
||||
@@ -2,7 +2,7 @@ package core;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class CoreClassTest {
|
||||
public class CoreClassTests {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
@@ -2,7 +2,7 @@ package core;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HasOptionalTest {
|
||||
public class HasOptionalTests {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
@@ -2,9 +2,9 @@ package sample;
|
||||
|
||||
import org.junit.*;
|
||||
|
||||
public class DependencyTest {
|
||||
public class DependencyTests {
|
||||
@Test
|
||||
public void findsDependencyOnClasspath() {
|
||||
new Dependency();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapTemplateLookupOpenLdapITest extends
|
||||
public class LdapTemplateLookupOpenLdapITests extends
|
||||
AbstractDependencyInjectionSpringContextTests {
|
||||
|
||||
private LdapTemplate tested;
|
||||
@@ -42,7 +42,7 @@ import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapTemplatePagedSearchITest extends
|
||||
public class LdapTemplatePagedSearchITests extends
|
||||
AbstractDependencyInjectionSpringContextTests {
|
||||
|
||||
private static final Name BASE = DistinguishedName.EMPTY_PATH;
|
||||
@@ -38,7 +38,7 @@ import org.springframework.test.AbstractDependencyInjectionSpringContextTests;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapTemplateSortedSearchITest extends
|
||||
public class LdapTemplateSortedSearchITests extends
|
||||
AbstractDependencyInjectionSpringContextTests {
|
||||
|
||||
private static final Name BASE = DistinguishedName.EMPTY_PATH;
|
||||
@@ -32,7 +32,7 @@ import static org.junit.Assert.assertNull;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class NamingExceptionTest {
|
||||
public class NamingExceptionTests {
|
||||
|
||||
private ByteArrayOutputStream byteArrayOutputStream;
|
||||
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class DefaultValuesAuthenticationSourceDecoratorTest {
|
||||
public class DefaultValuesAuthenticationSourceDecoratorTests {
|
||||
|
||||
private static final String DEFAULT_PASSWORD = "defaultPassword";
|
||||
|
||||
@@ -54,7 +54,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class LdapTemplateNamespaceHandlerTest {
|
||||
public class LdapTemplateNamespaceHandlerTests {
|
||||
|
||||
@Test
|
||||
public void verifyParseWithDefaultValues() {
|
||||
@@ -28,7 +28,7 @@ import java.util.List;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class PagedResultTest {
|
||||
public class PagedResultTests {
|
||||
|
||||
@Test
|
||||
public void testEquals() throws Exception {
|
||||
@@ -19,7 +19,7 @@ package org.springframework.ldap.control;
|
||||
import com.gargoylesoftware.base.testing.EqualsTester;
|
||||
import org.junit.Test;
|
||||
|
||||
public class PagedResultsCookieTest {
|
||||
public class PagedResultsCookieTests {
|
||||
|
||||
@Test
|
||||
public void testEquals() {
|
||||
@@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class PagedResultsDirContextProcessorTest {
|
||||
public class PagedResultsDirContextProcessorTests {
|
||||
|
||||
private LdapContext ldapContextMock;
|
||||
|
||||
@@ -29,7 +29,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class RequestControlDirContextProcessorTest {
|
||||
public class RequestControlDirContextProcessorTests {
|
||||
|
||||
private AbstractRequestControlDirContextProcessor tested;
|
||||
|
||||
@@ -58,7 +58,7 @@ public class RequestControlDirContextProcessorTest {
|
||||
this.tested = new AbstractRequestControlDirContextProcessor() {
|
||||
|
||||
public Control createRequestControl() {
|
||||
return RequestControlDirContextProcessorTest.this.requestControlMock;
|
||||
return RequestControlDirContextProcessorTests.this.requestControlMock;
|
||||
}
|
||||
|
||||
public void postProcess(DirContext ctx) throws NamingException {
|
||||
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class SortControlDirContextProcessorTest {
|
||||
public class SortControlDirContextProcessorTests {
|
||||
|
||||
private LdapContext ldapContextMock;
|
||||
|
||||
@@ -26,7 +26,7 @@ import java.util.List;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertSame;
|
||||
|
||||
public class CollectingNameClassPairCallbackHandlerTest {
|
||||
public class CollectingNameClassPairCallbackHandlerTests {
|
||||
|
||||
private CollectingNameClassPairCallbackHandler tested;
|
||||
|
||||
@@ -41,8 +41,8 @@ public class CollectingNameClassPairCallbackHandlerTest {
|
||||
this.tested = new CollectingNameClassPairCallbackHandler() {
|
||||
public Object getObjectFromNameClassPair(NameClassPair nameClassPair) {
|
||||
assertThat(nameClassPair)
|
||||
.isSameAs(CollectingNameClassPairCallbackHandlerTest.this.expectedNameClassPair);
|
||||
return CollectingNameClassPairCallbackHandlerTest.this.expectedResult;
|
||||
.isSameAs(CollectingNameClassPairCallbackHandlerTests.this.expectedNameClassPair);
|
||||
return CollectingNameClassPairCallbackHandlerTests.this.expectedResult;
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class ContextMapperCallbackHandlerTest {
|
||||
public class ContextMapperCallbackHandlerTests {
|
||||
|
||||
private ContextMapper mapperMock;
|
||||
|
||||
@@ -46,7 +46,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class DefaultLdapClientListTest {
|
||||
public class DefaultLdapClientListTests {
|
||||
|
||||
private static final String NAME = "o=example.com";
|
||||
|
||||
@@ -44,7 +44,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class DefaultLdapClientLookupTest {
|
||||
public class DefaultLdapClientLookupTests {
|
||||
|
||||
private static final Name DEFAULT_BASE = LdapUtils.newLdapName("o=example.com");
|
||||
|
||||
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Josh Cummings
|
||||
*/
|
||||
public class DefaultLdapClientRenameTest {
|
||||
public class DefaultLdapClientRenameTests {
|
||||
|
||||
private ContextSource contextSourceMock;
|
||||
|
||||
@@ -64,7 +64,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Josh Cummings
|
||||
*/
|
||||
public class DefaultLdapClientTest {
|
||||
public class DefaultLdapClientTests {
|
||||
|
||||
private static final Name DEFAULT_BASE = LdapUtils.newLdapName("o=example.com");
|
||||
|
||||
@@ -29,7 +29,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Luke Taylor
|
||||
*/
|
||||
public class DirContextAdapterBugTest {
|
||||
public class DirContextAdapterBugTests {
|
||||
|
||||
@Test
|
||||
public void testResetAttributeValuesNotReportedAsModifications() {
|
||||
@@ -43,7 +43,7 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class DirContextAdapterTest {
|
||||
public class DirContextAdapterTests {
|
||||
|
||||
private static final LdapName BASE_NAME = LdapUtils.newLdapName("dc=jayway,dc=se");
|
||||
|
||||
@@ -26,7 +26,7 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
*
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class DistinguishedNameEditorTest {
|
||||
public class DistinguishedNameEditorTests {
|
||||
|
||||
private DistinguishedNameEditor tested;
|
||||
|
||||
@@ -34,7 +34,7 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
* @author Adam Skogman
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class DistinguishedNameTest {
|
||||
public class DistinguishedNameTests {
|
||||
|
||||
@Test
|
||||
public void testDistinguishedName_CompositeWithSlash() throws Exception {
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class LdapRdnComponentTest {
|
||||
public class LdapRdnComponentTests {
|
||||
|
||||
@Test
|
||||
public void testCompareTo_Less() {
|
||||
@@ -27,7 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class LdapRdnTest {
|
||||
public class LdapRdnTests {
|
||||
|
||||
@Test
|
||||
public void testLdapRdn_parse_simple() {
|
||||
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapTemplateListTest {
|
||||
public class LdapTemplateListTests {
|
||||
|
||||
private static final String NAME = "o=example.com";
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.ldap.NameNotFoundException;
|
||||
import org.springframework.ldap.odm.core.ObjectDirectoryMapper;
|
||||
import org.springframework.ldap.support.LdapUtils;
|
||||
|
||||
public class LdapTemplateLookupTest {
|
||||
public class LdapTemplateLookupTests {
|
||||
|
||||
private static final String DEFAULT_BASE_STRING = "o=example.com";
|
||||
|
||||
@@ -11,7 +11,7 @@ import static org.mockito.Mockito.mock;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class LdapTemplateOdmTest {
|
||||
public class LdapTemplateOdmTests {
|
||||
|
||||
private LdapTemplate tested;
|
||||
|
||||
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapTemplateRenameTest {
|
||||
public class LdapTemplateRenameTests {
|
||||
|
||||
private ContextSource contextSourceMock;
|
||||
|
||||
@@ -70,7 +70,7 @@ import static org.springframework.ldap.query.LdapQueryBuilder.query;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapTemplateTest {
|
||||
public class LdapTemplateTests {
|
||||
|
||||
private static final String DEFAULT_BASE_STRING = "o=example.com";
|
||||
|
||||
@@ -30,7 +30,7 @@ import static org.junit.Assert.assertTrue;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class NameAwareAttributeTest {
|
||||
public class NameAwareAttributeTests {
|
||||
|
||||
@Test
|
||||
public void testEqualsWithIdNotSame() {
|
||||
@@ -4,7 +4,7 @@ import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class NameAwareAttributesTest {
|
||||
public class NameAwareAttributesTests {
|
||||
|
||||
// gh-548
|
||||
@Test
|
||||
@@ -26,7 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class AbstractContextSourceTest {
|
||||
public class AbstractContextSourceTests {
|
||||
|
||||
@Test
|
||||
public void testFormatForUrlNormal() throws InvalidNameException {
|
||||
@@ -24,7 +24,7 @@ import javax.naming.NamingException;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
public class AggregateDirContextProcessorTest {
|
||||
public class AggregateDirContextProcessorTests {
|
||||
|
||||
private DirContextProcessor processor1Mock;
|
||||
|
||||
@@ -34,7 +34,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class BaseLdapPathBeanPostProcessorTest {
|
||||
public class BaseLdapPathBeanPostProcessorTests {
|
||||
|
||||
private BaseLdapPathBeanPostProcessor tested;
|
||||
|
||||
@@ -33,7 +33,7 @@ import static org.mockito.Mockito.when;
|
||||
* @Ulrik Sandberg
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class ContextMapperCallbackHandlerWithControlsTest {
|
||||
public class ContextMapperCallbackHandlerWithControlsTests {
|
||||
|
||||
private ContextMapperWithControls mapperMock;
|
||||
|
||||
@@ -22,7 +22,7 @@ import javax.naming.directory.SearchResult;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class CountNameClassPairResultCallbackHandlerTest {
|
||||
public class CountNameClassPairResultCallbackHandlerTests {
|
||||
|
||||
private CountNameClassPairCallbackHandler tested;
|
||||
|
||||
@@ -34,7 +34,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class DefaultDirObjectFactoryTest {
|
||||
public class DefaultDirObjectFactoryTests {
|
||||
|
||||
private Context contextMock;
|
||||
|
||||
@@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Marius Scurtescu
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class DefaultIncrementalAttributesMapperTest {
|
||||
public class DefaultIncrementalAttributesMapperTests {
|
||||
|
||||
private DefaultIncrementalAttributesMapper tested;
|
||||
|
||||
@@ -32,7 +32,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class LdapContextSourceTest {
|
||||
public class LdapContextSourceTests {
|
||||
|
||||
private LdapContextSource tested;
|
||||
|
||||
@@ -26,7 +26,7 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
*
|
||||
* @author Marius Scurtescu
|
||||
*/
|
||||
public class RangeOptionTest {
|
||||
public class RangeOptionTests {
|
||||
|
||||
@Test
|
||||
public void testConstructorInvalid() {
|
||||
@@ -23,7 +23,7 @@ import java.util.Hashtable;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class SimpleDirContextAuthenticationStrategyTest {
|
||||
public class SimpleDirContextAuthenticationStrategyTests {
|
||||
|
||||
private SimpleDirContextAuthenticationStrategy tested;
|
||||
|
||||
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.when;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class SingleContextSourceTest {
|
||||
public class SingleContextSourceTests {
|
||||
|
||||
private ContextSource contextSourceMock;
|
||||
|
||||
@@ -61,7 +61,7 @@ public class SingleContextSourceTest {
|
||||
@Override
|
||||
public Object executeWithContext(DirContext ctx) throws NamingException {
|
||||
Object targetContex = getInternalState(Proxy.getInvocationHandler(ctx), "target");
|
||||
assertThat(targetContex).isSameAs(SingleContextSourceTest.this.dirContextMock);
|
||||
assertThat(targetContex).isSameAs(SingleContextSourceTests.this.dirContextMock);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
@@ -73,7 +73,7 @@ public class SingleContextSourceTest {
|
||||
@Override
|
||||
public Object executeWithContext(DirContext ctx) throws NamingException {
|
||||
Object targetContex = getInternalState(Proxy.getInvocationHandler(ctx), "target");
|
||||
assertThat(targetContex).isSameAs(SingleContextSourceTest.this.dirContextMock);
|
||||
assertThat(targetContex).isSameAs(SingleContextSourceTests.this.dirContextMock);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
@@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class AbstractFilterTest {
|
||||
public class AbstractFilterTests {
|
||||
|
||||
/*
|
||||
* Test for String encode()
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class AndFilterTest {
|
||||
public class AndFilterTests {
|
||||
|
||||
@Test
|
||||
public void testZero() {
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class EqualsFilterTest {
|
||||
public class EqualsFilterTests {
|
||||
|
||||
@Test
|
||||
public void testEncode() {
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class GreaterThanOrEqualsFilterTest {
|
||||
public class GreaterThanOrEqualsFilterTests {
|
||||
|
||||
@Test
|
||||
public void testEncode() {
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class HardcodedFilterTest {
|
||||
public class HardcodedFilterTests {
|
||||
|
||||
@Test
|
||||
public void testHardcodedFilter() {
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class LessThanOrEqualsFilterTest {
|
||||
public class LessThanOrEqualsFilterTests {
|
||||
|
||||
@Test
|
||||
public void testEncode() {
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Anders Henja
|
||||
*/
|
||||
public class LikeFilterTest {
|
||||
public class LikeFilterTests {
|
||||
|
||||
@Test
|
||||
public void testEncodeValue_blank() {
|
||||
@@ -26,7 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class NotFilterTest {
|
||||
public class NotFilterTests {
|
||||
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class NotPresentFilterTest {
|
||||
public class NotPresentFilterTests {
|
||||
|
||||
@Test
|
||||
public void testNotPresentFilter() {
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class OrFilterTest {
|
||||
public class OrFilterTests {
|
||||
|
||||
@Test
|
||||
public void testZero() {
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class PresentFilterTest {
|
||||
public class PresentFilterTests {
|
||||
|
||||
@Test
|
||||
public void testPresentFilter() {
|
||||
@@ -25,7 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class WhitespaceWildcardsFilterTest {
|
||||
public class WhitespaceWildcardsFilterTests {
|
||||
|
||||
@Test
|
||||
public void testEncodeValue_blank() {
|
||||
@@ -23,7 +23,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class DefaultObjectDirectoryMapperTest {
|
||||
public class DefaultObjectDirectoryMapperTests {
|
||||
|
||||
private DefaultObjectDirectoryMapper tested;
|
||||
|
||||
@@ -33,7 +33,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DelegatingContextTest extends AbstractPoolTestCase {
|
||||
public class DelegatingContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testConstructorAssertions() {
|
||||
@@ -34,7 +34,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DelegatingDirContextTest extends AbstractPoolTestCase {
|
||||
public class DelegatingDirContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testConstructorAssertions() {
|
||||
@@ -32,7 +32,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DelegatingLdapContextTest extends AbstractPoolTestCase {
|
||||
public class DelegatingLdapContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testConstructorAssertions() {
|
||||
@@ -24,7 +24,7 @@ import static org.mockito.Mockito.verify;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class MutableDelegatingLdapContextTest extends AbstractPoolTestCase {
|
||||
public class MutableDelegatingLdapContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testSupportedMethodsAllowedToCall() throws Exception {
|
||||
@@ -39,7 +39,7 @@ import static org.mockito.Mockito.when;
|
||||
/**
|
||||
* @author Eric Dalquist
|
||||
*/
|
||||
public class DirContextPoolableObjectFactoryTest extends AbstractPoolTestCase {
|
||||
public class DirContextPoolableObjectFactoryTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testProperties() throws Exception {
|
||||
@@ -29,7 +29,7 @@ import static org.mockito.Mockito.when;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class MutablePoolingContextSourceTest extends AbstractPoolTestCase {
|
||||
public class MutablePoolingContextSourceTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testGetReadOnlyLdapContext() throws Exception {
|
||||
@@ -33,7 +33,7 @@ import static org.mockito.Mockito.when;
|
||||
/**
|
||||
* @author Eric Dalquist
|
||||
*/
|
||||
public class PoolingContextSourceTest extends AbstractPoolTestCase {
|
||||
public class PoolingContextSourceTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testProperties() throws Exception {
|
||||
@@ -33,7 +33,7 @@ import static org.mockito.Mockito.when;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DefaultDirContextValidatorTest {
|
||||
public class DefaultDirContextValidatorTests {
|
||||
|
||||
private NamingEnumeration namingEnumerationMock;
|
||||
|
||||
@@ -33,7 +33,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DelegatingContextTest extends AbstractPoolTestCase {
|
||||
public class DelegatingContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testConstructorAssertions() {
|
||||
@@ -34,7 +34,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DelegatingDirContextTest extends AbstractPoolTestCase {
|
||||
public class DelegatingDirContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testConstructorAssertions() {
|
||||
@@ -32,7 +32,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Eric Dalquist
|
||||
* <a href="mailto:eric.dalquist@doit.wisc.edu">eric.dalquist@doit.wisc.edu</a>
|
||||
*/
|
||||
public class DelegatingLdapContextTest extends AbstractPoolTestCase {
|
||||
public class DelegatingLdapContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testConstructorAssertions() {
|
||||
@@ -24,7 +24,7 @@ import static org.mockito.Mockito.verify;
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class MutableDelegatingLdapContextTest extends AbstractPoolTestCase {
|
||||
public class MutableDelegatingLdapContextTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testSupportedMethodsAllowedToCall() throws Exception {
|
||||
@@ -41,7 +41,7 @@ import static org.mockito.Mockito.when;
|
||||
* @author Eric Dalquist
|
||||
* @author Anindya Chatterjee
|
||||
*/
|
||||
public class DirContextPooledObjectFactoryTest extends AbstractPoolTestCase {
|
||||
public class DirContextPooledObjectFactoryTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testProperties() throws Exception {
|
||||
@@ -30,7 +30,7 @@ import static org.mockito.Mockito.when;
|
||||
* @author Ulrik Sandberg
|
||||
* @author Anindya Chatterjee
|
||||
*/
|
||||
public class MutablePooledContextSourceTest extends AbstractPoolTestCase {
|
||||
public class MutablePooledContextSourceTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testGetReadOnlyLdapContext() throws Exception {
|
||||
@@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Anindya Chatterjee
|
||||
*/
|
||||
public class PoolConfigTest extends AbstractPoolTestCase {
|
||||
public class PoolConfigTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testProperties() {
|
||||
@@ -33,7 +33,7 @@ import static org.mockito.Mockito.when;
|
||||
* @author Eric Dalquist
|
||||
* @author Anindya Chatterjee
|
||||
*/
|
||||
public class PooledContextSourceTest extends AbstractPoolTestCase {
|
||||
public class PooledContextSourceTests extends AbstractPoolTestCase {
|
||||
|
||||
@Test
|
||||
public void testProperties() throws Exception {
|
||||
@@ -9,7 +9,7 @@ import static org.springframework.ldap.query.LdapQueryBuilder.query;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class LdapQueryBuilderTest {
|
||||
public class LdapQueryBuilderTests {
|
||||
|
||||
@Test
|
||||
public void buildSimpleWithDefaults() {
|
||||
@@ -26,7 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Adam Skogman
|
||||
*/
|
||||
public class LdapEncoderTest {
|
||||
public class LdapEncoderTests {
|
||||
|
||||
@Test
|
||||
public void testFilterEncode() {
|
||||
@@ -7,7 +7,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Mattias Hellborg Arthursson
|
||||
*/
|
||||
public class LdapNameBuilderTest {
|
||||
public class LdapNameBuilderTests {
|
||||
|
||||
@Test
|
||||
public void testAddComponentToEmpty() {
|
||||
@@ -33,7 +33,7 @@ import static org.assertj.core.api.Assertions.fail;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
public class LdapUtilsTest {
|
||||
public class LdapUtilsTests {
|
||||
|
||||
private static final String EXPECTED_DN_STRING = "cn=john.doe, OU=Users,OU=SE,OU=G,OU=I,OU=M";
|
||||
|
||||
@@ -27,7 +27,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
|
||||
public class BindOperationExecutorTest {
|
||||
public class BindOperationExecutorTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
public class BindOperationRecorderTest {
|
||||
public class BindOperationRecorderTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
@@ -25,7 +25,7 @@ import javax.naming.directory.DirContext;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
public class LdapCompensatingTransactionOperationFactoryTest {
|
||||
public class LdapCompensatingTransactionOperationFactoryTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
@@ -44,8 +44,8 @@ public class LdapCompensatingTransactionOperationFactoryTest {
|
||||
this.tested = new LdapCompensatingTransactionOperationFactory(this.renamingStrategyMock) {
|
||||
|
||||
LdapOperations createLdapOperationsInstance(DirContext ctx) {
|
||||
assertThat(ctx).isEqualTo(LdapCompensatingTransactionOperationFactoryTest.this.dirContextMock);
|
||||
return LdapCompensatingTransactionOperationFactoryTest.this.ldapOperationsMock;
|
||||
assertThat(ctx).isEqualTo(LdapCompensatingTransactionOperationFactoryTests.this.dirContextMock);
|
||||
return LdapCompensatingTransactionOperationFactoryTests.this.ldapOperationsMock;
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -28,7 +28,7 @@ import static org.junit.Assert.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
public class LdapTransactionUtilsTest {
|
||||
public class LdapTransactionUtilsTests {
|
||||
|
||||
private DirContext dirContextMock;
|
||||
|
||||
@@ -27,7 +27,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
|
||||
public class ModifyAttributesOperationExecutorTest {
|
||||
public class ModifyAttributesOperationExecutorTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
@@ -36,7 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class ModifyAttributesOperationRecorderTest {
|
||||
public class ModifyAttributesOperationRecorderTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class ModifyAttributesOperationRecorderTest {
|
||||
|
||||
this.tested = new ModifyAttributesOperationRecorder(this.ldapOperationsMock) {
|
||||
IncrementalAttributesMapper getAttributesMapper(String[] attributeNames) {
|
||||
return ModifyAttributesOperationRecorderTest.this.attributesMapperMock;
|
||||
return ModifyAttributesOperationRecorderTests.this.attributesMapperMock;
|
||||
}
|
||||
|
||||
protected ModificationItem getCompensatingModificationItem(Attributes originalAttributes,
|
||||
@@ -26,7 +26,7 @@ import javax.naming.ldap.LdapName;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.verify;
|
||||
|
||||
public class RebindOperationExecutorTest {
|
||||
public class RebindOperationExecutorTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
@@ -28,7 +28,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
public class RebindOperationRecorderTest {
|
||||
public class RebindOperationRecorderTests {
|
||||
|
||||
private LdapOperations ldapOperationsMock;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user