Package simtools.ui

Examples of simtools.ui.UserProperties.store()


        assertEquals(expected, childUp.setProperty("master.property0", "0"));
        assertEquals(expected, childUp.getProperty("master.property0"));
        //Now check that this property has been saved in the child file, as it was the same value as the master.
        try {
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            childUp.store(out, "");
            String savedProperties = out.toString();
            //We have to check that master properties has not been saved.
            assertTrue(savedProperties.indexOf("master.property0") == -1);
        } catch (IOException e) {
            fail("IOException :"+e);
View Full Code Here


        expected = "3";
        assertEquals(expected, childUp.getProperty("master.property0"));
        //Now check that this property has been saved in the child file, as it was the same value as the master.
        try {
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            childUp.store(out, "");
            String savedProperties = out.toString();
            //We have to check that master properties has been saved in child file.
            assertTrue(savedProperties.indexOf("master.property0") != -1);
        } catch (IOException e) {
            fail("IOException :"+e);
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.