mil.dod.th.ose.utils/test/mil/dod/th/ose/utils/impl/TestFileServiceImpl.java
@Test
    public void testDoesFileExist()
    {
        File testFile = mock(File.class);
        when(testFile.exists()).thenReturn(true);
        assertThat(m_SUT.doesFileExist(testFile), is(true));
        
        when(testFile.exists()).thenReturn(false);
        assertThat(m_SUT.doesFileExist(testFile), is(false));
    }
/**
     * Test verifying that a file exists.
     */
Test verifying that a file exists.
Test verifying that a file exists .
@Test
    public void testDoesFileExist()
    {
        File testFile = mock(File.class);
        when(testFile.exists()).thenReturn(true);
        assertThat(m_SUT.doesFileExist(testFile), is(true));
        when(testFile.exists()).thenReturn(false);
        assertThat(m_SUT.doesFileExist(testFile), is(false));
    }
@ Test public void testDoesFileExist ( ) { File testFile = mock ( File . class ) ; when ( testFile . exists ( ) ) . thenReturn ( true ) ; assertThat ( m_SUT . doesFileExist ( testFile ) , is ( true ) ) ; when ( testFile . exists ( ) ) . thenReturn ( false ) ; assertThat ( m_SUT . doesFileExist ( testFile ) , is ( false ) ) ; }
Test verifying that a file exists.
Test verifying that a file exists .