-
- // test of exception part of the method moduleNamespaceToPackageName()
- Module moduleWithoutRevision = mock(Module.class);
- doReturn(null).when(moduleWithoutRevision).getQNameModule();
- try {
- BindingGeneratorUtil.moduleNamespaceToPackageName(moduleWithoutRevision);
- fail("Expected IllegalArgumentException");
- } catch (IllegalArgumentException e) {
- }
- }
-
- /**
- * Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition(String, TypeDefinition)
- * packageNameForTypeDefinition(String, TypeDefinition)}</li>
- * </ul>
- */
- @Test
- @Deprecated
- public void testPackageNameForTypeDefinitionNullBasePackageName() {
- expectedEx.expect(IllegalArgumentException.class);
- expectedEx.expectMessage("Base Package Name cannot be NULL!");
- BindingGeneratorUtil.packageNameForTypeDefinition(null, null);
- }
-
- /**
- * Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition(String, TypeDefinition)
- * packageNameForTypeDefinition(String, TypeDefinition)}</li>
- * </ul>
- */
- @Test
- @Deprecated
- public void testPackageNameForTypeDefinitionNullTypeDefinition() {
- expectedEx.expect(IllegalArgumentException.class);
- expectedEx.expectMessage("Type Definition reference cannot be NULL!");
- BindingGeneratorUtil.packageNameForTypeDefinition("test.package", null);