/** Test the controller constructor. */
 @Test
 public void testConstructor() {
   NanomaterialController controller = new NanomaterialController();
   CRUDAssert.assertControllerConstructor(
       controller,
       NanomaterialController.URL_PREFIX,
       "inventory.nanomaterial.",
       "name",
       Nanomaterial.class,
       NanomaterialForm.class,
       CRUDTableDecorator.class);
 }
Esempio n. 2
0
 /** Test the controller constructor. */
 @Test
 public void testConstructor() {
   SoftwareController controller = new SoftwareController();
   CRUDAssert.assertControllerConstructor(
       controller,
       SoftwareController.URL_PREFIX,
       "administration.software.",
       "name",
       Software.class,
       SoftwareForm.class,
       CRUDTableDecorator.class);
 }
 /** Test the controller constructor. */
 @Test
 public void testConstructor() {
   ChemicalCompoundController controller = new ChemicalCompoundController();
   CRUDAssert.assertControllerConstructor(
       controller,
       ChemicalCompoundController.URL_PREFIX,
       "inventory.chemicalcompound.",
       "name",
       ChemicalCompound.class,
       ChemicalCompoundForm.class,
       CRUDTableDecorator.class);
 }