Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TestIsEmpty (0.28 sec)

  1. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/BNDSmokeTest.groovy

        }
    }
    """
    
            file("src/main/java/com/example/Example.java") << """
    package com.example;
    
    import org.apache.commons.lang3.StringUtils;
    
    public class Example {
        public boolean testIsEmpty(String someString) {
            return StringUtils.isEmpty(someString);
        }
    }
    """
    
            when:
            runner("jar")
                .forwardOutput()
                .build()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        assertNull(table.get("bar", 3));
        assertNull(table.get("cat", 1));
        assertNull(table.get("foo", null));
        assertNull(table.get(null, 1));
        assertNull(table.get(null, null));
      }
    
      public void testIsEmpty() {
        assertTrue(table.isEmpty());
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertFalse(table.isEmpty());
      }
    
      public void testSize() {
        assertSize(0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 16:54:11 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            assertThat(list.size(), is(1));
            list.removeFirst();
            assertThat(list.size(), is(0));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsEmpty() throws Exception {
            assertThat(list.isEmpty(), is(true));
            list.addLast("1");
            assertThat(list.isEmpty(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            final String[] newArray = ArrayUtil.remove(array, "444");
            assertThat(newArray, is(sameInstance(array)));
        }
    
        /**
         *
         */
        @Test
        public void testIsEmpty() {
            assertTrue(ArrayUtil.isEmpty((Object[]) null));
            assertTrue(ArrayUtil.isEmpty(new Object[] {}));
            assertFalse(ArrayUtil.isEmpty(new Object[] { "" }));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertFalse(StringUtil.isNumber("01234abcdef"));
            assertFalse(StringUtil.isNumber("abcdef01234"));
        }
    
        /**
         *
         */
        @Test
        public void testIsEmpty() {
            assertTrue(StringUtil.isEmpty(null));
            assertTrue(StringUtil.isEmpty(""));
            assertFalse(StringUtil.isEmpty(" "));
        }
    
        /**
         *
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            assertThat(map.size(), equalTo(3));
            map.put("3", "test3");
            assertThat(map.size(), equalTo(4));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIsEmpty() throws Exception {
            assertThat(map.isEmpty(), is(not(true)));
            map.clear();
            assertThat(map.isEmpty(), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. src/text/template/parse/parse_test.go

    	{"definitions and text", "{{define `x`}}something{{end}}\nx\n{{define `y`}}something{{end}}\ny\n", false},
    	{"definition and action", "{{define `x`}}something{{end}}{{if 3}}foo{{end}}", false},
    }
    
    func TestIsEmpty(t *testing.T) {
    	if !IsEmptyTree(nil) {
    		t.Errorf("nil tree is not empty")
    	}
    	for _, test := range isEmptyTests {
    		tree, err := New("root").Parse(test.input, "", "", make(map[string]*Tree), nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top