*/
package org.tizen.cli.exec;
-import static org.tizen.common.core.command.Policy.EXCEPTION_UNHANDLED;
import static org.tizen.common.core.command.Policy.EXIST_OUT_FILE;
import static org.tizen.common.core.command.Policy.NONEXIST_IN_FILE;
-import java.lang.Thread.UncaughtExceptionHandler;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tizen.common.Factory;
parser.parse( opts, new String[] {
"--help", "--quiet", "--profile", "test:/test/profiles.xml"
} );
+ parser.parse( opts, new String[] {
+ "--help", "--quiet", "--profile", "test:/test/profiles.xml", "--include", "*.xml", "--exclude", "*.jpg"
+ } );
parser.parse( opts, new String[] {
"-h", "-q", "-p", "test:/test/profiles.xml"
test_run()
throws Exception
{
- final AtomicBoolean result = new AtomicBoolean( false );
-
- final Main main = new Main()
- {
- protected Executor getExecutor() {
- return MainTest.this.executor;
- }
-
- protected void execute( final CommandLine cmdLine ) throws Exception {
- result.set( true );
- }
- };
+ {
+ final AtomicBoolean result = new AtomicBoolean( false );
+
+ final Main main = new Main()
+ {
+ protected Executor getExecutor() {
+ return MainTest.this.executor;
+ }
+
+ protected
+ void
+ execute(
+ final CommandLine cmdLine
+ )
+ throws Exception
+ {
+ result.set( true );
+ }
+ };
+
+ main.run( "-p", "test" );
+ assertTrue( result.get() );
+ }
- main.run( "-p", "test" );
- assertTrue( result.get() );
}
}