X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Ftest%2Fnet%2Fsf%2Fopenrocket%2Fpreset%2Fxml%2FOpenRocketComponentSaverTest.java;fp=core%2Ftest%2Fnet%2Fsf%2Fopenrocket%2Fpreset%2Fxml%2FOpenRocketComponentSaverTest.java;h=4325fae2e15ef7a18d93c15f22515ec1a242dea3;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=0000000000000000000000000000000000000000;hpb=30ba0a882f0c061176ba14dbf86d3d6fad096c02;p=debian%2Fopenrocket diff --git a/core/test/net/sf/openrocket/preset/xml/OpenRocketComponentSaverTest.java b/core/test/net/sf/openrocket/preset/xml/OpenRocketComponentSaverTest.java new file mode 100644 index 00000000..4325fae2 --- /dev/null +++ b/core/test/net/sf/openrocket/preset/xml/OpenRocketComponentSaverTest.java @@ -0,0 +1,112 @@ +package net.sf.openrocket.preset.xml; + +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +/** +* OpenRocketComponentSaver Tester. +* +*/ +public class OpenRocketComponentSaverTest { + + @Before + public void before() throws Exception { + } + + @After + public void after() throws Exception { + } + + /** + * + * Method: marshalToOpenRocketComponent(List theMaterialList, List thePresetList) + * + */ + @Test + public void testMarshalToOpenRocketComponent() throws Exception { + //TODO: Test goes here... + } + + /** + * + * Method: unmarshalFromOpenRocketComponent(Reader is) + * + */ + @Test + public void testUnmarshalFromOpenRocketComponent() throws Exception { + //TODO: Test goes here... + } + + /** + * + * Method: save(OutputStream dest, List theMaterialList, List thePresetList) + * + */ + @Test + public void testSave() throws Exception { + //TODO: Test goes here... + } + + + /** + * + * Method: fromOpenRocketComponent(Reader is) + * + */ + @Test + public void testFromOpenRocketComponent() throws Exception { + //TODO: Test goes here... +/* +try { + Method method = OpenRocketComponentSaver.getClass().getMethod("fromOpenRocketComponent", Reader.class); + method.setAccessible(true); + method.invoke(, ); +} catch(NoSuchMethodException e) { +} catch(IllegalAccessException e) { +} catch(InvocationTargetException e) { +} +*/ + } + + /** + * + * Method: toOpenRocketComponentDTO(List theMaterialList, List thePresetList) + * + */ + @Test + public void testToOpenRocketComponentDTO() throws Exception { + //TODO: Test goes here... +/* +try { + Method method = OpenRocketComponentSaver.getClass().getMethod("toOpenRocketComponentDTO", List.class, List.class); + method.setAccessible(true); + method.invoke(, ); +} catch(NoSuchMethodException e) { +} catch(IllegalAccessException e) { +} catch(InvocationTargetException e) { +} +*/ + } + + /** + * + * Method: toComponentDTO(ComponentPreset thePreset) + * + */ + @Test + public void testToComponentDTO() throws Exception { + //TODO: Test goes here... +/* +try { + Method method = OpenRocketComponentSaver.getClass().getMethod("toComponentDTO", ComponentPreset.class); + method.setAccessible(true); + method.invoke(, ); +} catch(NoSuchMethodException e) { +} catch(IllegalAccessException e) { +} catch(InvocationTargetException e) { +} +*/ + } + +}