package net.jangaroo.exml.model;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
*
*/
public class ConfigClassTypeTest {
@Test
public void testPlugin() {
ConfigClassType plugin = ConfigClassType.fromExtConfigAttribute("ptype");
assertEquals(ConfigClassType.PLUGIN, plugin);
assertEquals("ptype", plugin.getExtTypeAttribute());
assertEquals("ptype", plugin.getType());
plugin = ConfigClassType.fromExtConfigAttribute("gctype");
assertEquals(ConfigClassType.GRID_COLUMN, plugin);
assertEquals("xtype", plugin.getExtTypeAttribute());
assertEquals("gctype", plugin.getType());
}
}