source: ComponentRegistry/trunk/ComponentBrowserGui/src/test/flex/clarin/cmdi/componentregistry/CMDComponentTest.as @ 3368

Last change on this file since 3368 was 3368, checked in by g.georgovassilis@mpi.nl, 11 years ago

#269 BaseRemoteService? abstracts HTTP communication away for XML services, added facility for mocking services in unit tests, moved tests into src/test

  • Property svn:mime-type set to text/plain
File size: 614 bytes
Line 
1package clarin.cmdi.componentregistry.editor.model {
2        import flexunit.framework.TestCase;
3        import flexunit.framework.TestSuite;
4
5        public class CMDComponentTest extends TestCase {
6                public function CMDComponentTest() {
7                        super();
8                }
9
10                public static function suite():TestSuite {
11                        return new TestSuite(CMDComponentTest);
12                }
13
14                public function testToXml():void {
15                    var comp:CMDComponent = new CMDComponent();
16                    comp.name = "aap";
17                    var expected:XML = <CMD_Component name="aap" CardinalityMin="1" CardinalityMax="1"/>
18                        assertEquals(expected.toXMLString(), comp.toXml().toXMLString());
19                       
20                }
21
22
23        }
24}
Note: See TracBrowser for help on using the repository browser.