- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 745 for logic (0.03 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
* interaction with {@link SmbFile} instances. The tests make heavy use of * Mockito to guarantee that implementation classes do not inadvertently * bypass the filter logic. */ public class SmbFileFilterTest { /** * A minimal implementation that accepts every {@link SmbFile}. */ private final SmbFileFilter ALWAYSACTIVE = new SmbFileFilter() { @OverrideCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* visible static factory method whose return type is {@code C} or {@code C}'s subtype. * </ul> * * <p>In all cases, if {@code C} needs custom logic for testing serialization, you can add an * explicit {@code testSerializable()} test in the corresponding {@code CTest} class, and {@code * C} will be excluded from automated serialization test performed by this method. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 17.9K bytes - Click Count (0) -
cmd/post-policy_test.go
req.Header.Set("Content-Type", contentTypeHdr) req.Header.Set("User-Agent", "Mozilla") // Since `apiRouter` satisfies `http.Handler` it has a ServeHTTP to execute the logic of the handler. // Call the ServeHTTP to execute the handler. apiRouter.ServeHTTP(rec, req) ctx, cancel := context.WithCancel(GlobalContext) defer cancel()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 30.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
verify(file, times(1)).getAttributes(); } @Test public void testAcceptIgnoresWildcard() throws Exception { // Wildcard shouldn't affect accept logic. DosFileFilter customFilter = new DosFileFilter("*.txt", SmbFile.ATTR_DIRECTORY); SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_DIRECTORY);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/opensearch/common/ImplementedInvokerAssistantTest.java
assertEquals("Service", result[0]); assertEquals("ServiceImpl", result[1]); assertEquals("Facade", result[2]); assertEquals("FacadeImpl", result[3]); assertEquals("Logic", result[4]); assertEquals("LogicImpl", result[5]); } // Test toBeDisposable with null process @Test public void test_toBeDisposable_nullProcess() { // Should not throw exception
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.internal.smb2.create.Smb2CreateRequest; /** * Handles automatic reconnection of durable and persistent SMB handles. * * This class provides retry logic with exponential backoff for handle * reconnection after network failures or server issues. */ public class HandleReconnector { private static final Logger log = LoggerFactory.getLogger(HandleReconnector.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 8.5K bytes - Click Count (1) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/ShellRetry.java
*/ package org.elasticsearch.gradle.internal.docker; import java.util.stream.Collectors; import java.util.stream.IntStream; /** * The methods in this class take a shell command and wrap it in retry logic, so that our * Docker builds can be more robust in the face of transient errors e.g. network issues. */ public class ShellRetry { static String loop(String name, String command) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 10 13:10:22 GMT 2021 - 1.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Header.kt
@JvmField val name: ByteString, /** Value in UTF-8 encoding. */ @JvmField val value: ByteString, ) { @JvmField val hpackSize = 32 + name.size + value.size // TODO: search for toLowerCase and consider moving logic here. constructor(name: String, value: String) : this(name.encodeUtf8(), value.encodeUtf8()) constructor(name: ByteString, value: String) : this(name, value.encodeUtf8())Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
import org.codehaus.plexus.interpolation.RegexBasedInterpolator; /** * Use a regular expression search to find and resolve expressions within the POM. * * TODO Consolidate this logic with the PluginParameterExpressionEvaluator, minus deprecations/bans. */ @Deprecated public class RegexBasedModelInterpolator extends AbstractStringBasedModelInterpolator {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 1.7K bytes - Click Count (0) -
internal/http/check_port_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package http import ( "fmt" "net" "runtime" "strconv" "testing" ) // Tests for port availability logic written for server startup sequence. func TestCheckPortAvailability(t *testing.T) { if runtime.GOOS != "linux" { t.Skip() } l, err := net.Listen("tcp", "localhost:0") // ask kernel for a free port.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 03 21:12:25 GMT 2023 - 1.9K bytes - Click Count (0)