- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 1,332 for Assert (0.06 seconds)
-
guava-tests/test/com/google/common/util/concurrent/ServiceTest.java
import org.jspecify.annotations.NullUnmarked; /** Unit tests for {@link Service} */ @NullUnmarked @GwtIncompatible @J2ktIncompatible public class ServiceTest extends TestCase { /** Assert on the comparison ordering of the State enum since we guarantee it. */ public void testStateOrdering() { // List every valid (direct) state transition. assertLessThan(NEW, STARTING); assertLessThan(NEW, TERMINATED);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.1K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/IssueManagementTest.java
IssueManagement im = new IssueManagement(); im.setSystem("Velociraptor"); im.setUrl("https://velo.localdomain"); String s = im.toString(); assert "IssueManagement {system=Velociraptor, url=https://velo.localdomain}".equals(s) : s; }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 2K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/AbstractContextAwareRuleSpecification.groovy
ClassPool instanceScopedPool = new ClassPool() JApiClass apiClass = Stub(JApiClass) def setup() { instanceScopedPool.appendSystemPath() } void noViolation(def rule) { assert rule.maybeViolation(apiClass) == null } Map getInitializationParams() { return [ publicApiPatterns: ['gradlebuild[.]binarycompatibility[.]rules.[^.]+'],Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Dec 30 10:14:25 GMT 2025 - 2K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.private-javadoc.gradle.kts
pluginManager.withPlugin("gradlebuild.code-quality") { tasks { named("codeQuality") { dependsOn(tasks.withType<Javadoc>()) } } } tasks.withType<Javadoc>().configureEach { assert(name != "javadocAll") // This plugin should not be applied to the :docs project. onlyIf("Do not run the task if there are no java sources") { // Javadoc task will complain if we only have package-info.java files and no
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Aug 20 14:11:17 GMT 2024 - 2.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isCloseTo import assertk.assertions.isFalse import assertk.assertions.isInstanceOf import assertk.assertions.matchesPredicate import java.util.Deque import java.util.concurrent.ConcurrentLinkedDeque import java.util.concurrent.TimeUnit
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SSPContextTest.java
DummySSPContext ctx = new DummySSPContext(new byte[] { 1, 2, 3 }, true, "NBHOST", new ASN1ObjectIdentifier[] { mech1, mech2 }, 0xA5, true); // Act & Assert assertArrayEquals(new byte[] { 1, 2, 3 }, ctx.getSigningKey(), "signing key"); assertTrue(ctx.isEstablished(), "should be established"); byte[] in = new byte[] { 9, 8, 7, 6 };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/validation/CronExpressionValidatorTest.java
}; // Test each pattern and see what actually works for (String cron : potentiallyValidCrons) { boolean result = validator.isValid(cron, context); // Don't assert true/false here, just test that method doesn't throw assertNotNull(Boolean.valueOf(result), "Validation should return a boolean result for: " + cron); } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 4.6K bytes - Click Count (0) -
fastapi/utils.py
return operation_id def generate_unique_id(route: "APIRoute") -> str: operation_id = f"{route.name}{route.path_format}" operation_id = re.sub(r"\W", "_", operation_id) assert route.methods operation_id = f"{operation_id}_{list(route.methods)[0].lower()}" return operation_id def deep_dict_update(main_dict: dict[Any, Any], update_dict: dict[Any, Any]) -> None:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 4.2K bytes - Click Count (0) -
fastapi/routing.py
``` """ assert self is not router, ( "Cannot include the same APIRouter instance into itself. " "Did you mean to include a different router?" ) if prefix: assert prefix.startswith("/"), "A path prefix must start with '/'" assert not prefix.endswith("/"), (Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/CharsetsTest.java
byte[] b2 = "聞朝日新".getBytes(Charsets.US_ASCII); byte[] b3 = "????".getBytes(Charsets.US_ASCII); byte[] b4 = "ニュース".getBytes(Charsets.US_ASCII); byte[] b5 = "スューー".getBytes(Charsets.US_ASCII); // Assert they are all equal (using the transitive property) assertThat(b1).isEqualTo(b2); assertThat(b2).isEqualTo(b3); assertThat(b3).isEqualTo(b4); assertThat(b4).isEqualTo(b5); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 12:37:39 GMT 2026 - 2.6K bytes - Click Count (0)