- Sort Score
- Num 10 results
- Language All
Results 1291 - 1300 of 1,693 for assertEquals (0.07 seconds)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
response.setStatusForTest(status); assertEquals(status, response.getErrorCode()); } @ParameterizedTest @ValueSource(ints = { 0, 1, 10, 100, 255 }) @DisplayName("Should handle various credit values") void testVariousCreditValues(int credits) { response.setCreditForTest(credits); assertEquals(credits, response.getGrantedCredits()); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.3K bytes - Click Count (0) -
okhttp-tls/src/test/java/okhttp3/tls/CertificatesJavaTest.java
* limitations under the License. */ package okhttp3.tls; import java.security.cert.X509Certificate; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class CertificatesJavaTest { @Test public void testRoundtrip() { String certificateString = "" + "-----BEGIN CERTIFICATE-----\n"Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Nov 20 02:23:18 GMT 2020 - 1.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java
expectAdded(e3()); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testPutIfAbsent_supportedPresent() { assertEquals( "putIfAbsent(present, value) should return existing value", v0(), getMap().putIfAbsent(k0(), v3())); expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 16 02:04:51 GMT 2025 - 5.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java
SuggestCreator.Options options = new SuggestCreator.Options(); options.sessionId = "test-session"; options.name = "test-name"; assertEquals("test-session", options.sessionId); assertEquals("test-name", options.name); } // Test create with search log enabled @Test public void test_create_searchLogEnabled() {
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/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.suggest; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.io.IOException; import java.io.InputStream;
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/GroupTests.java
List<Map<String, String>> attrList = JsonPath.from(response).getList(getJsonPath() + ".attributes"); assertEquals(NUM, attrList.size()); for (Map<String, String> attr : attrList) { assertTrue(attr.containsKey("gidNumber")); assertEquals(attr.get("gidNumber"), "100"); } } @Test void crudTest() { testCreate(); testRead();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jun 19 07:14:01 GMT 2025 - 3.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/QueuePollTester.java
@CollectionSize.Require(ONE) public void testPoll_size1() { assertEquals("size1Queue.poll() should return first element", e0(), getQueue().poll()); expectMissing(e0()); } @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE}) @CollectionSize.Require(SEVERAL) public void testPoll_sizeMany() { assertEquals("sizeManyQueue.poll() should return first element", e0(), getQueue().poll());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.5K bytes - Click Count (0) -
build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/BuildPluginIT.java
try (InputStream license = zipFile.getInputStream(licenseEntry); InputStream notice = zipFile.getInputStream(noticeEntry)) { assertEquals("this is a test license file", IOUtils.toString(license, StandardCharsets.UTF_8.name())); assertEquals("this is a test notice file", IOUtils.toString(notice, StandardCharsets.UTF_8.name())); } } }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/BadWordTests.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.it.admin; import static io.restassured.RestAssured.given; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.HashMap; import java.util.Map; import org.codelibs.fess.it.CrudTestBase; import org.junit.jupiter.api.Tag;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 4.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java
RuntimeException expected = assertThrows(RuntimeException.class, () -> getUnchecked(RUNTIME_EXCEPTION_FUTURE)); assertEquals(RUNTIME_EXCEPTION, expected); } public void testGetUnchecked_error() { try { getUnchecked(ERROR_FUTURE); } catch (Error expected) { assertEquals(ERROR, expected); return; } fail(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.6K bytes - Click Count (0)