Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 2793) sorted by relevance

12345678910>>...112

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DHostnameVerifierTest.java42 FakeSSLSession session = new FakeSSLSession(); in verify() local
43 assertFalse(verifier.verify("localhost", session)); in verify()
48 SSLSession session = session("" in verifyCn() local
74 assertTrue(verifier.verify("foo.com", session)); in verifyCn()
75 assertFalse(verifier.verify("a.foo.com", session)); in verifyCn()
76 assertFalse(verifier.verify("bar.com", session)); in verifyCn()
81 SSLSession session = session("" in verifyNonAsciiCn() local
107 assertTrue(verifier.verify("\u82b1\u5b50.co.jp", session)); in verifyNonAsciiCn()
108 assertFalse(verifier.verify("a.\u82b1\u5b50.co.jp", session)); in verifyNonAsciiCn()
113 SSLSession session = session("" in verifySubjectAlt() local
[all …]
/external/mockftpserver/tags/2.4/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
55 private DefaultSession session; field in DefaultSessionTest
71 session = createDefaultSession(""); in setUp()
114 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
115 session.setClientDataPort(PORT); in testSetClientDataPort()
116 session.setClientDataHost(clientHost); in testSetClientDataPort()
117 session.openDataConnection(); in testSetClientDataPort()
127 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
129 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
131 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.5/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
55 private DefaultSession session; field in DefaultSessionTest
71 session = createDefaultSession(""); in setUp()
114 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
115 session.setClientDataPort(PORT); in testSetClientDataPort()
116 session.setClientDataHost(clientHost); in testSetClientDataPort()
117 session.openDataConnection(); in testSetClientDataPort()
127 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
129 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
131 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
55 private DefaultSession session; field in DefaultSessionTest
71 session = createDefaultSession(""); in setUp()
114 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
115 session.setClientDataPort(PORT); in testSetClientDataPort()
116 session.setClientDataHost(clientHost); in testSetClientDataPort()
117 session.openDataConnection(); in testSetClientDataPort()
127 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
129 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
131 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.3/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DSSLSessionImplTest.java36 SSLSessionImpl session = new SSLSessionImpl(null, null); in testSSLSessionImplCipherSuiteSecureRandom() local
37 assertEquals(session.getCipherSuite(), in testSSLSessionImplCipherSuiteSecureRandom()
40 session = new SSLSessionImpl(CipherSuite.TLS_RSA_WITH_NULL_MD5, in testSSLSessionImplCipherSuiteSecureRandom()
42 session.protocol = ProtocolVersion.TLSv1; in testSSLSessionImplCipherSuiteSecureRandom()
43 assertEquals("Incorrect protocol", "TLSv1", session.getProtocol()); in testSSLSessionImplCipherSuiteSecureRandom()
44 assertEquals("Incorrect cipher suite", session.getCipherSuite(), in testSSLSessionImplCipherSuiteSecureRandom()
46 assertEquals("Incorrect id", 32, session.getId().length); in testSSLSessionImplCipherSuiteSecureRandom()
47 assertTrue("Incorrect isValid", session.isValid()); in testSSLSessionImplCipherSuiteSecureRandom()
48 assertTrue("Incorrect isServer", session.isServer); in testSSLSessionImplCipherSuiteSecureRandom()
49 long time = session.getCreationTime(); in testSSLSessionImplCipherSuiteSecureRandom()
[all …]
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.0/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.1/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.2.2/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.0.1/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.2.4/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.2.1/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.0.2/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.2/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.1/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.2.3/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.2/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.0-rc1/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/1.0/src/test/java/org/mockftpserver/core/session/
DDefaultSessionTest.java16 package org.mockftpserver.core.session;
54 private DefaultSession session; field in DefaultSessionTest
70 session = createDefaultSession(""); in setUp()
113 session.socketFactory = stubSocketFactory; in testSetClientDataPort()
114 session.setClientDataPort(PORT); in testSetClientDataPort()
115 session.setClientDataHost(clientHost); in testSetClientDataPort()
116 session.openDataConnection(); in testSetClientDataPort()
126 session.serverSocketFactory = stubServerSocketFactory; in testSetClientDataPort_AfterPassiveConnectionMode()
128 session.switchToPassiveMode(); in testSetClientDataPort_AfterPassiveConnectionMode()
130 assertNotNull("passiveModeDataSocket", session.passiveModeDataSocket); in testSetClientDataPort_AfterPassiveConnectionMode()
[all …]
/external/mockftpserver/tags/2.2/src/test/java/org/mockftpserver/core/command/
D_AbstractTrackingCommandHandlerTest.java20 import org.mockftpserver.core.session.Session;
53 private Session session; field in _AbstractTrackingCommandHandlerTest
60 commandHandler.handleCommand(COMMAND, session); in testHandleCommand()
70 commandHandler.handleCommand(null, session); in testHandleCommand_NullCommand()
95 control(session).expectAndDefaultReturn(session.getClientHost(), DEFAULT_HOST); in testInvocationHistory()
96 replay(session); in testInvocationHistory()
99 commandHandler.handleCommand(COMMAND, session); in testInvocationHistory()
101 commandHandler.handleCommand(COMMAND, session); in testInvocationHistory()
113 control(session).expectAndDefaultReturn(session.getClientHost(), DEFAULT_HOST); in testGetInvocation()
114 replay(session); in testGetInvocation()
[all …]
/external/mockftpserver/tags/2.0/src/test/java/org/mockftpserver/core/command/
D_AbstractTrackingCommandHandlerTest.java20 import org.mockftpserver.core.session.Session;
53 private Session session; field in _AbstractTrackingCommandHandlerTest
60 commandHandler.handleCommand(COMMAND, session); in testHandleCommand()
70 commandHandler.handleCommand(null, session); in testHandleCommand_NullCommand()
95 control(session).expectAndDefaultReturn(session.getClientHost(), DEFAULT_HOST); in testInvocationHistory()
96 replay(session); in testInvocationHistory()
99 commandHandler.handleCommand(COMMAND, session); in testInvocationHistory()
101 commandHandler.handleCommand(COMMAND, session); in testInvocationHistory()
113 control(session).expectAndDefaultReturn(session.getClientHost(), DEFAULT_HOST); in testGetInvocation()
114 replay(session); in testGetInvocation()
[all …]

12345678910>>...112