- Sort Score
- Num 10 results
- Language All
Results 361 - 370 of 1,497 for Unit (0.02 seconds)
-
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
import jcifs.Configuration; import jcifs.SmbConstants; import jcifs.internal.smb1.ServerMessageBlock; import jcifs.internal.util.SMBUtil; import jcifs.smb.NtlmPasswordAuthenticator; import jcifs.smb.SmbException; /** * Unit tests exercising {@link SmbComSessionSetupAndX}. The class under test * contains several protected helper methods and a complex constructor * that branches on credential type. These tests use reflection to callCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
import okhttp3.tls.internal.TlsUtil.localhost /** * OkHttp is usually tested with functional tests: these use public APIs to confirm behavior against * MockWebServer. In cases where logic is particularly tricky, we use unit tests. This class makes * it easy to get sample values to use in such tests. * * This class is pretty fast and loose with default values: it attempts to provide values that are
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 6.6K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt
private fun openJarFile(file: Path): ZipInputStream { return ZipInputStream(Files.newInputStream(file)) } } /** * Implementation code that can be unit-tested. * * <p>Visible for testing.</p> */ class Implementation(private val excludes: List<String>, private val includes: List<String>) { fun collectPackages(files: Iterable<Path>): Trie {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Apr 11 15:53:18 GMT 2025 - 7.1K bytes - Click Count (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
} }.buffer() }, ).build() var responseClosed = false var canceled = false var afterCallbackOnResponse: () -> Unit = {} override fun cancel() { canceled = true } override fun enqueue(responseCallback: Callback) { responseCallback.onResponse(this, response) afterCallbackOnResponse()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 5.3K bytes - Click Count (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
connection.inputStream .source() .buffer() .readUtf8(), ).contains("Peter the person") } } private fun testRequest(function: (MockServerClient) -> Unit) { MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient -> val request = request() .withPath("/person") .withQueryStringParameter("name", "peter")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.2K bytes - Click Count (1) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
package jcifs.smb1.smb1; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; /** * Unit tests for the Trans2QueryPathInformation class. */ class Trans2QueryPathInformationTest { /** * Tests the constructor of Trans2QueryPathInformation. */ @Test void testConstructor() { // GivenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * Unit tests for the {@link ConsoleIcon} enum. * Tests icon rendering with different terminal charsets and fallback behavior. */ @DisplayName("ConsoleIcon") class ConsoleIconTest { @TestCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Jul 15 09:35:08 GMT 2025 - 6.8K bytes - Click Count (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
it.write(this@gzipCompress) } return result.readByteString() } private fun response( url: String, body: ByteString, fn: Response.Builder.() -> Unit = {}, ): Response = Response .Builder() .body(body.toResponseBody("text/plain".toMediaType())) .code(200) .message("OK") .request(Request.Builder().url(url).build())
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Aug 01 06:04:22 GMT 2025 - 4.8K bytes - Click Count (1) -
guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
import java.util.Map; import java.util.Map.Entry; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.jspecify.annotations.NullUnmarked; /** * Unit test for {@link ImmutableTypeToInstanceMap}. * * @author Ben Yu */ @NullUnmarked public class ImmutableTypeToInstanceMapTest extends TestCase { @AndroidIncompatible // problem with suite builders on AndroidCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 6.9K bytes - Click Count (0) -
PULL_REQUESTS_ETIQUETTE.md
- Keep PRs focused—one feature or fix. Split large changes into multiple PRs. 3. **Testing**: - Include unit tests for new functionality or bug fixes. - Ensure existing tests pass (`make test`). - Document testing steps in the PR summary if manual testing was performed. 4. **Before Submitting**:
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun May 25 16:32:03 GMT 2025 - 4.7K bytes - Click Count (0)