// Path: tomitribe-crest/src/main/java/org/tomitribe/crest/cmds/Cmd.java
// public interface Cmd extends Completer {
//     String getUsage();
// 
//     String getName();
// 
//     Object exec(Map<Class<?>, InternalInterceptor> globalInterceptors, String... rawArgs);
// 
//     void help(PrintStream out);
//     
//     default void manual(PrintStream out) {
//         help(out);
//     }
// }


import junit.framework.TestCase;
import org.tomitribe.crest.api.Command;
import org.tomitribe.crest.api.Option;
import org.tomitribe.crest.cmds.Cmd;
import java.net.URI;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.tomitribe.crest;



public class OptionListsTest extends TestCase {

    private final Map<String, Cmd> commands = org.tomitribe.crest.cmds.processors.Commands.get(Commands.class);

    public void testByte() throws Exception {
        commands.get("doByte").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testBoolean() throws Exception {
        commands.get("doBoolean").exec(null, "--foo=false", "--foo=true", "--foo=false");
    }

    public void testCharacter() throws Exception {
        commands.get("doCharacter").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testShort() throws Exception {
        commands.get("doShort").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testInt() throws Exception {
        commands.get("doInt").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testLong() throws Exception {
        commands.get("doLong").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

// Path: tomitribe-crest/src/main/java/org/tomitribe/crest/cmds/Cmd.java
// public interface Cmd extends Completer {
//     String getUsage();
// 
//     String getName();
// 
//     Object exec(Map<Class<?>, InternalInterceptor> globalInterceptors, String... rawArgs);
// 
//     void help(PrintStream out);
//     
//     default void manual(PrintStream out) {
//         help(out);
//     }
// }


// Path: tomitribe-crest/src/test/java/org/tomitribe/crest/OptionListsTest.java
import junit.framework.TestCase;
import org.tomitribe.crest.api.Command;
import org.tomitribe.crest.api.Option;
import org.tomitribe.crest.cmds.Cmd;
import java.net.URI;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.tomitribe.crest;



public class OptionListsTest extends TestCase {

    private final Map<String, Cmd> commands = org.tomitribe.crest.cmds.processors.Commands.get(Commands.class);

    public void testByte() throws Exception {
        commands.get("doByte").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testBoolean() throws Exception {
        commands.get("doBoolean").exec(null, "--foo=false", "--foo=true", "--foo=false");
    }

    public void testCharacter() throws Exception {
        commands.get("doCharacter").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testShort() throws Exception {
        commands.get("doShort").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testInt() throws Exception {
        commands.get("doInt").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testLong() throws Exception {
        commands.get("doLong").exec(null, "--foo=2", "--foo=3", "--foo=5");
    }

    public void testFloat() throws Exception {