source: ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/model/CMDAttributeTest.as @ 224

Last change on this file since 224 was 224, checked in by patdui, 14 years ago
  • reimplemented my drag and drop editor
  • created search functionality for isocat conceptLinks.
  • added some flexUnit tests and cleanup error handling
File size: 760 bytes
Line 
1package clarin.cmdi.componentregistry.editor.model {
2        import flexunit.framework.TestCase;
3        import flexunit.framework.TestSuite;
4
5        public class CMDAttributeTest extends TestCase {
6                public function CMDAttributeTest() {
7                        super();
8                }
9
10                public static function suite():TestSuite {
11                        return new TestSuite(CMDAttributeTest);
12                }
13
14                public function testToXml():void {
15                        var result:CMDAttribute = new CMDAttribute();
16                        result.name = "aap";
17                        result.type = "string";
18                        var expected:XML = <Attribute>
19                                        <Name>aap</Name>
20                                        <Type>string</Type>
21                                </Attribute>;
22                        assertEquals(expected.toXMLString(), result.toXml().toXMLString());
23                }
24
25//public function testToXmlValueSchemePattern():void {}
26//public function testToXmlValueSchemeEnumeration():void {}
27        }
28}
Note: See TracBrowser for help on using the repository browser.