/** * Test <code>MatFileFilter</code> options */ @Test public void testMatFileFilter() { // create new filter instance MatFileFilter filter = new MatFileFilter(); // empty filter should match all patterns assertEquals("Test if empty filter matches all patterns", true, filter.matches("any")); // now add something to the filter filter.addArrayName("my_array"); // test if filter matches my_array assertEquals("Test if filter matches given array name", true, filter.matches("my_array")); // test if filter returns false if does not match given name assertEquals("Test if filter does not match non existent name", false, filter.matches("dummy")); }
if (isRoot && !filter.matches(name)) { return null;
if ( isRoot && !filter.matches(name) )
if (isRoot && !filter.matches(name)) { return null;
if ( isRoot && !filter.matches(name) )
if (isRoot && !filter.matches(name)) { return null;