- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for testDomain (0.08 sec)
-
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
private final String testDomain = "TEST_DOMAIN"; private final int testServerTypes = NetServerEnum2.SV_TYPE_ALL; @BeforeEach void setUp() { netServerEnum2 = new NetServerEnum2(testDomain, testServerTypes); } /** * Test the constructor of NetServerEnum2. */ @Test void testConstructor() { assertEquals(testDomain, netServerEnum2.domain);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
* Test basic session lifecycle management */ @Test @Timeout(5) public void testSessionLifecycle() throws Exception { SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport); // Test initial state - session starts with usage count > 0 due to transport.acquire() assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
mockAuth.username = "testuser"; mockAuth.domain = "TESTDOMAIN"; mockAuth.password = "testpass"; when(mockAuth.getAnsiHash(any(byte[].class))).thenReturn(new byte[24]); when(mockAuth.getUnicodeHash(any(byte[].class))).thenReturn(new byte[24]); when(mockAuth.getName()).thenReturn("testuser"); when(mockAuth.getDomain()).thenReturn("TESTDOMAIN");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/DfsReferralDataTest.java
assertEquals(server, result); verify(mockReferralData).getServer(); } @Test @DisplayName("Should get domain") void testGetDomain() { // Given String domain = "TESTDOMAIN"; when(mockReferralData.getDomain()).thenReturn(domain); // When String result = mockReferralData.getDomain(); // Then assertEquals(domain, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/CredentialsTest.java
verify(mockCredentials).unwrap(Credentials.class); } @Test @DisplayName("Should get user domain") void testGetUserDomain() { // Given String domain = "TESTDOMAIN"; when(mockCredentials.getUserDomain()).thenReturn(domain); // When String result = mockCredentials.getUserDomain(); // Then assertEquals(domain, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
private MockedStatic<SmbTransport> smbtStatic; @BeforeEach void setUp() throws Exception { // Create a real NtlmPasswordAuthentication instance auth = new NtlmPasswordAuthentication("TESTDOMAIN", "testuser", "testpass"); // Initialize ServerData to avoid NullPointerException SmbTransport.ServerData serverData = transport.new ServerData();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
@Override public boolean isAnonymous() { return false; // not anonymous for test purposes } @Override public String getUserDomain() { return "TESTDOMAIN"; // test domain for test purposes } @Override public <T extends Credentials> T unwrap(Class<T> type) { if (type.isInstance(this)) { return type.cast(this);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt
http2Only = false, workingOnly = false, getOnly = false, ) runBatch(dnsProviders, names) val dnsCache = Cache( directory = File("./target/TestDohMain.cache.${System.currentTimeMillis()}"), maxSize = 10L * 1024 * 1024, ) println("Bad targets\n***********\n") val url = "https://dns.cloudflare.com/.not-so-well-known/run-dmc-query".toHttpUrl()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.2K bytes - Viewed (0) -
docs/pt/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` O arquivo `main.py` teria: {* ../../docs_src/async_tests/main.py *} O arquivo `test_main.py` teria os testes para para o arquivo `main.py`, ele poderia ficar assim: {* ../../docs_src/async_tests/test_main.py *} ## Executá-lo Você pode executar os seus testes normalmente via: <div class="termy">
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/testing.md
{* ../../docs_src/app_testing/main.py *} ### Arquivo de teste Então você poderia ter um arquivo `test_main.py` com seus testes. Ele poderia estar no mesmo pacote Python (o mesmo diretório com um arquivo `__init__.py`): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ```
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 6.8K bytes - Viewed (0)