Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 224 for assertNull (0.07 sec)

  1. src/test/java/org/codelibs/core/convert/StringConversionUtilTest.java

    /**
     * @author shinsuke
     *
     */
    public class StringConversionUtilTest extends TestCase {
        /**
         * @throws Exception
         */
        public void testFromWindowsMapping() throws Exception {
            assertNull(StringConversionUtil.fromWindowsMapping(null));
            assertEquals("", StringConversionUtil.fromWindowsMapping(""));
            assertEquals("abc 123", StringConversionUtil.fromWindowsMapping("abc 123"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. api/maven-api-settings/src/test/java/org/apache/maven/api/settings/SettingsTest.java

     * under the License.
     */
    package org.apache.maven.api.settings;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    class SettingsTest {
    
        @Test
        void testSetLocalRepository() {
            Settings s = Settings.newInstance();
    
            s = s.withLocalRepository("xxx");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Apr 15 17:24:20 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/security/MessageDigestUtilTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.security;
    
    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertNull;
    import static org.junit.Assert.assertTrue;
    
    import org.codelibs.core.exception.EmptyArgumentException;
    import org.codelibs.core.exception.NoSuchAlgorithmRuntimeException;
    import org.junit.Test;
    
    /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryTest.java

            CrawlerClient client;
    
            url = null;
            client = clientFactory.getClient(url);
            assertNull(client);
    
            url = "";
            client = clientFactory.getClient(url);
            assertNull(client);
    
            url = " ";
            client = clientFactory.getClient(url);
            assertNull(client);
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

            Thread.sleep(2000);
            assertTrue(expiredCount > 0);
            assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount());
            TimeoutManager.getInstance().stop();
            assertNull(TimeoutManager.getInstance().thread);
            Thread.sleep(10);
            int count = expiredCount;
            task.stop();
            TimeoutManager.getInstance().start();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/io/ResourceUtilTest.java

        /**
         * @throws Exception
         */
        public void testGetResourceAsStreamNoException() throws Exception {
            assertNotNull(ResourceUtil.getResourceAsStreamNoException("java/lang/String.class", "class"));
            assertNull(ResourceUtil.getResourceAsStreamNoException("java/lang/String2.class", "class"));
        }
    
        /**
         * @throws Exception
         */
        public void testGetBuildDir() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

    import org.eclipse.aether.util.version.GenericVersionScheme;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.junit.jupiter.api.Assertions.fail;
    
    /**
     */
    public class ModelVersionParserTest {
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/form/FormSchemeTest.java

            content = "<input name=\"authenticity_token\" value=\"abcdefg\">";
            assertNull(formScheme.getTokenValue(tokenPattern, content));
    
            tokenPattern = "name=\"authenticity_token\" +value=\"([^\"]+)\"";
            content = "<input name=\"authenticity_token\" hoge value=\"abcdefg\">";
            assertNull(formScheme.getTokenValue(tokenPattern, content));
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

                      throw new AssertionFailedError();
                    }));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testComputeIfAbsent_functionReturnsNullNotInserted() {
        assertNull(
            "computeIfAbsent(absent, returnsNull) should return null",
            getMap()
                .computeIfAbsent(
                    k3(),
                    k -> {
                      assertEquals(k3(), k);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MapPutIfAbsentTester<K, V> extends AbstractMapTester<K, V> {
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutIfAbsent_supportedAbsent() {
        assertNull(
            "putIfAbsent(notPresent, value) should return null", getMap().putIfAbsent(k3(), v3()));
        expectAdded(e3());
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top