Package pt.webdetails.cpf.repository.api

Examples of pt.webdetails.cpf.repository.api.IBasicFileFilter.accept()


    IBasicFile testFolder = new DummyBasicFile( BASE_DIR_PLUS_ONE_EXTRA_DIR );

    IBasicFileFilter filter = new GenericBasicFileFilter( ACCEPTED_FILENAME, ACCEPTED_EXTENSIONS, acceptDirectories );

    Assert.assertTrue( filter.accept( testFolder ) );
  }

  @Test
  public void testDirectoryIsProperlyDiscarded() {
View Full Code Here


    IBasicFile testFolder = new DummyBasicFile( BASE_DIR_PLUS_ONE_EXTRA_DIR );

    IBasicFileFilter filter = new GenericBasicFileFilter( ACCEPTED_FILENAME, ACCEPTED_EXTENSIONS, acceptDirectories );

    Assert.assertTrue( !filter.accept( testFolder ) );

  }

  @After
  public void tearDown() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.