// Path: src/main/java/org/sherlok/SherlokServer.java
// static class CliArguments {
//     @Parameter(names = "-port", description = "Which port to use.")
//     int port = DEFAULT_PORT;
//     @Parameter(names = "-address", description = "Which ip address to use.")
//     String address = DEFAULT_IP;
//     @Parameter(names = "-master-url", description = "Turns slave mode on. Specifies master URL")
//     String masterUrl = null;
//     @Parameter(names = "-sealed", description = "Turns sealed mode on. Specifies allowed pipeline")
//     String sealed = null;
// }


import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.sherlok.SherlokServer.CliArguments;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;
/**
 * Copyright (C) 2014-2015 Renaud Richardet
 *
 * Licensed 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.sherlok;




public class SherlokServerArgsTest {

    @Test
    public void testPort() {

        CliArguments arg = new CliArguments();
        String[] args = { "-port", "12" };
        new JCommander(arg, args);

        assertEquals(12, arg.port);
    }

    @Test
    public void testAddress() {

// Path: src/main/java/org/sherlok/SherlokServer.java
// static class CliArguments {
//     @Parameter(names = "-port", description = "Which port to use.")
//     int port = DEFAULT_PORT;
//     @Parameter(names = "-address", description = "Which ip address to use.")
//     String address = DEFAULT_IP;
//     @Parameter(names = "-master-url", description = "Turns slave mode on. Specifies master URL")
//     String masterUrl = null;
//     @Parameter(names = "-sealed", description = "Turns sealed mode on. Specifies allowed pipeline")
//     String sealed = null;
// }


// Path: src/test/java/org/sherlok/SherlokServerArgsTest.java
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.sherlok.SherlokServer.CliArguments;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;

/**
 * Copyright (C) 2014-2015 Renaud Richardet
 *
 * Licensed 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.sherlok;




public class SherlokServerArgsTest {

    @Test
    public void testPort() {

        CliArguments arg = new CliArguments();
        String[] args = { "-port", "12" };
        new JCommander(arg, args);

        assertEquals(12, arg.port);
    }

    @Test
    public void testAddress() {

        CliArguments arg = new CliArguments();