/** * Tests the {@link LaunchConfiguration#setName} method * * @throws Exception */ public void testSetName() throws Exception { assertEquals("The default name should be: 'Test'", config.getName(), "Test"); config.setNameProxy("newname"); assertEquals("The new name should be: 'newname'", config.getName(), "newname"); // reset the name config.setNameProxy("Test"); }
/** * Tests the {@link LaunchConfiguration#getFileName} method * * @throws Exception */ public void testGetFileName() throws Exception { String filename = config.getFileNameProxy(); assertEquals("The filename should be: 'Test.launch'", "Test.launch", filename); config.setNameProxy("launch"); filename = config.getFileNameProxy(); assertEquals("The filename should be: 'launch.launch'", "launch.launch", filename); config.setNameProxy("launch.foo"); filename = config.getFileNameProxy(); assertEquals("The filename should be: 'launch.foo.launch'", "launch.foo.launch", filename); // reset the name config.setNameProxy("Test"); }