1 package net.sf.openrocket.preset.xml;
3 import org.junit.After;
4 import org.junit.Before;
8 * OpenRocketComponentSaver Tester.
11 public class OpenRocketComponentSaverTest {
14 public void before() throws Exception {
18 public void after() throws Exception {
23 * Method: marshalToOpenRocketComponent(List<Material> theMaterialList, List<ComponentPreset> thePresetList)
27 public void testMarshalToOpenRocketComponent() throws Exception {
28 //TODO: Test goes here...
33 * Method: unmarshalFromOpenRocketComponent(Reader is)
37 public void testUnmarshalFromOpenRocketComponent() throws Exception {
38 //TODO: Test goes here...
43 * Method: save(OutputStream dest, List<Material> theMaterialList, List<ComponentPreset> thePresetList)
47 public void testSave() throws Exception {
48 //TODO: Test goes here...
54 * Method: fromOpenRocketComponent(Reader is)
58 public void testFromOpenRocketComponent() throws Exception {
59 //TODO: Test goes here...
62 Method method = OpenRocketComponentSaver.getClass().getMethod("fromOpenRocketComponent", Reader.class);
63 method.setAccessible(true);
64 method.invoke(<Object>, <Parameters>);
65 } catch(NoSuchMethodException e) {
66 } catch(IllegalAccessException e) {
67 } catch(InvocationTargetException e) {
74 * Method: toOpenRocketComponentDTO(List<Material> theMaterialList, List<ComponentPreset> thePresetList)
78 public void testToOpenRocketComponentDTO() throws Exception {
79 //TODO: Test goes here...
82 Method method = OpenRocketComponentSaver.getClass().getMethod("toOpenRocketComponentDTO", List<Material>.class, List<ComponentPreset>.class);
83 method.setAccessible(true);
84 method.invoke(<Object>, <Parameters>);
85 } catch(NoSuchMethodException e) {
86 } catch(IllegalAccessException e) {
87 } catch(InvocationTargetException e) {
94 * Method: toComponentDTO(ComponentPreset thePreset)
98 public void testToComponentDTO() throws Exception {
99 //TODO: Test goes here...
102 Method method = OpenRocketComponentSaver.getClass().getMethod("toComponentDTO", ComponentPreset.class);
103 method.setAccessible(true);
104 method.invoke(<Object>, <Parameters>);
105 } catch(NoSuchMethodException e) {
106 } catch(IllegalAccessException e) {
107 } catch(InvocationTargetException e) {