Package org.impalaframework.command.basic.ClassFindCommand

Examples of org.impalaframework.command.basic.ClassFindCommand.ClassFindFileRecurseHandler


public class ClassFindFileRecurseHandlerTest extends TestCase {
   
    public void testGetPackageSegment() throws Exception {
        ClassFindCommand cmd = new ClassFindCommand();
        ClassFindFileRecurseHandler handler = cmd.new ClassFindFileRecurseHandler("ClassFindCommand");
        assertEquals("ClassFindCommand", handler.getClassSegment());
        assertEquals(null, handler.getPackageSegment());
       
        handler = cmd.new ClassFindFileRecurseHandler("net.java.ClassFindCommand");
        assertEquals("ClassFindCommand", handler.getClassSegment());
        assertEquals("net.java", handler.getPackageSegment());
       
        handler = cmd.new ClassFindFileRecurseHandler("net.java.");
        assertEquals("", handler.getClassSegment());
        assertEquals("net.java", handler.getPackageSegment());
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.command.basic.ClassFindCommand.ClassFindFileRecurseHandler

Copyright © 2018 www.massapicom. 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.