Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testIsExist (0.39 sec)

  1. src/test/java/org/codelibs/core/io/ResourceUtilTest.java

            final URLClassLoader loader = new URLClassLoader(new URL[] { url });
            loader.loadClass(TestCase.class.getName());
        }
    
        /**
         * @throws Exception
         */
        public void testIsExist() throws Exception {
            assertEquals("1", true, ResourceUtil.isExist("CLMessages.properties"));
            assertEquals("2", false, ResourceUtil.isExist("hoge"));
        }
    
        /**
         * @throws Exception
         */
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/os/error_test.go

    	{&os.LinkError{Err: fs.ErrClosed}, false, false},
    	{&os.SyscallError{Err: fs.ErrNotExist}, false, true},
    	{&os.SyscallError{Err: fs.ErrExist}, true, false},
    	{nil, false, false},
    }
    
    func TestIsExist(t *testing.T) {
    	for _, tt := range isExistTests {
    		if is := os.IsExist(tt.err); is != tt.is {
    			t.Errorf("os.IsExist(%T %v) = %v, want %v", tt.err, tt.err, is, tt.is)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 00:41:52 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top