Examples of SystemPropertyReader


Examples of de.fhkn.in.uce.master.server.util.SystemPropertyReader

     */
    @Test
    public final void testReadArguments1() {
        List<String> emptyList = new ArrayList<String>();
        emptyList.add("");
        SystemPropertyReader sysPropReader = new SystemPropertyReader();
        sysPropReader.readArguments(stunArgs, relayArgs, mediatorArgs);
        assertEquals(emptyList, relayArgs);
    }
View Full Code Here

Examples of de.fhkn.in.uce.master.server.util.SystemPropertyReader

     */
    @Test
    public final void testReadArguments2() {
        System.setProperty(AbstractReader.STUN_FIRST_IP, "wrong");

        SystemPropertyReader sysPropReader = new SystemPropertyReader();
        try {
            sysPropReader.readArguments(stunArgs, relayArgs, mediatorArgs);
        } catch(IllegalArgumentException e) {
            fail("Should not be here!");
        }

        System.clearProperty(AbstractReader.STUN_FIRST_IP);
View Full Code Here

Examples of de.fhkn.in.uce.master.server.util.SystemPropertyReader

        props.setProperty(AbstractReader.RELAY_PORT, "10400");
        props.setProperty(AbstractReader.MEDIATOR_PORT, "10401");
        props.setProperty(AbstractReader.MEDIATOR_ITERATION, "1");
        props.setProperty(AbstractReader.MEDIATOR_LIFETIME, "2");
        System.setProperties(props);
        SystemPropertyReader sysPropReader = new SystemPropertyReader();

        sysPropReader.readArguments(stunArgs, relayArgs, mediatorArgs);

        System.clearProperty(AbstractReader.STUN_FIRST_IP);
        System.clearProperty(AbstractReader.STUN_SECOND_IP);
        System.clearProperty(AbstractReader.RELAY_PORT);
        System.clearProperty(AbstractReader.MEDIATOR_PORT);
View Full Code Here

Examples of de.fhkn.in.uce.master.server.util.SystemPropertyReader

        FilePropertyReader filePropsReader = new FilePropertyReader();
        filePropsReader.readArguments(stunArgs, relayArgs, mediatorArgs);
    }

    private void setArgsFromSystemProperties() throws IllegalArgumentException {
        SystemPropertyReader sysPropsReader = new SystemPropertyReader();
        sysPropsReader.readArguments(stunArgs, relayArgs, mediatorArgs);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.