Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing JUnit tests, some version consider classes starting with Test*…

… as test classes.
  • Loading branch information...
commit 51a4952ebdd6aabcac6d80f51e43b25caefe1fd2 1 parent 7fa154f
Vladimír Schäfer vschafer authored
4 ...ork/security/saml/storage/TestStorageFactory.java → ...security/saml/storage/StorageFactoryTestImpl.java
View
@@ -19,11 +19,11 @@
/**
* Storage factory used for testing.
*/
-public class TestStorageFactory implements SAMLMessageStorageFactory {
+public class StorageFactoryTestImpl implements SAMLMessageStorageFactory {
SAMLMessageStorage storage;
- public TestStorageFactory(SAMLMessageStorage storage) {
+ public StorageFactoryTestImpl(SAMLMessageStorage storage) {
this.storage = storage;
}
4 saml2-core/src/test/java/org/springframework/security/saml/websso/WebSSOProfileHoKImplTest.java
View
@@ -32,7 +32,7 @@
import org.springframework.security.saml.context.SAMLMessageContext;
import org.springframework.security.saml.metadata.MetadataManager;
import org.springframework.security.saml.storage.SAMLMessageStorage;
-import org.springframework.security.saml.storage.TestStorageFactory;
+import org.springframework.security.saml.storage.StorageFactoryTestImpl;
import org.springframework.security.saml.util.SAMLUtil;
import javax.servlet.ServletOutputStream;
@@ -79,7 +79,7 @@ public void write(int b) throws IOException {
storage = createMock(SAMLMessageStorage.class);
contextProvider = context.getBean("contextProvider", SAMLContextProviderImpl.class);
- ((SAMLContextProviderImpl) contextProvider).setStorageFactory(new TestStorageFactory(storage));
+ ((SAMLContextProviderImpl) contextProvider).setStorageFactory(new StorageFactoryTestImpl(storage));
expect(request.getContextPath()).andReturn("/");
replyMock();
4 saml2-core/src/test/java/org/springframework/security/saml/websso/WebSSOProfileImplTest.java
View
@@ -32,7 +32,7 @@
import org.springframework.security.saml.context.SAMLMessageContext;
import org.springframework.security.saml.metadata.MetadataManager;
import org.springframework.security.saml.storage.SAMLMessageStorage;
-import org.springframework.security.saml.storage.TestStorageFactory;
+import org.springframework.security.saml.storage.StorageFactoryTestImpl;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
@@ -79,7 +79,7 @@ public void write(int b) throws IOException {
storage = createMock(SAMLMessageStorage.class);
contextProvider = context.getBean("contextProvider", SAMLContextProviderImpl.class);
- ((SAMLContextProviderImpl) contextProvider).setStorageFactory(new TestStorageFactory(storage));
+ ((SAMLContextProviderImpl) contextProvider).setStorageFactory(new StorageFactoryTestImpl(storage));
expect(request.getContextPath()).andReturn("/");
replyMock();
Please sign in to comment.
Something went wrong with that request. Please try again.