[nobug] API work + Committed for BLB
diff --git a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java index 34151ef..1f23597 100644 --- a/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java +++ b/tests/org.eclipse.jst.j2ee.tests/j2ee-tests/org/eclipse/jst/j2ee/flexible/project/apitests/artifactedit/AppClientArtifactEditTest.java
@@ -28,6 +28,24 @@ private ArtifactEditModel artifactEditModelForRead; private EditModelListener emListener; + + + public class ApplicationArtifactTestSub extends AppClientArtifactEdit { + + public ApplicationArtifactTestSub(ArtifactEditModel anArtifactEditModel) { + super(anArtifactEditModel); + } + + protected void addAppClientIfNecessary(XMLResource aResource) { + super.addAppClientIfNecessary(aResource); + } + } + + public void testAddCleint() { + new ApplicationArtifactTestSub(null); + + } + private IOperationHandler handler = new IOperationHandler() { @@ -258,11 +276,11 @@ boolean testURI = uri.equals(TestWorkspace.APP_CLIENT_DD_XMI_RESOURCE_URI); // assertTrue(uri.equals(TestWorkspace.APP_CLIENT_DD_XMI_RESOURCE_URI)); - }catch(Exception e){ - - //TODO + } catch (Exception e) { + + // TODO } - + finally { if (moduleCore != null) { moduleCore.dispose(); @@ -283,7 +301,7 @@ AppClientArtifactEdit edit2 = new AppClientArtifactEdit(getArtifactEditModelforRead()) { protected void addAppClientIfNecessary(XMLResource aResource) { super.addAppClientIfNecessary(aResource); - } + } }; } finally { if (moduleCore != null) { @@ -291,7 +309,7 @@ edit.dispose(); } } - + pass(); // protected - not sure if needed } @@ -514,12 +532,12 @@ WorkbenchComponent wbComponent = moduleCore.findComponentByName(appClientModuleName); edit = AppClientArtifactEdit.getAppClientArtifactEditForRead(wbComponent); // THIS IS A BUG\\ - commmenting out as suggested by DW - Object object = edit.getContentModelRoot(); + Object object = edit.getContentModelRoot(); // assertNotNull(object); pass(); } catch (Exception e) { e.printStackTrace(); - //fail(e.getMessage()); + // fail(e.getMessage()); } finally { if (moduleCore != null) { moduleCore.dispose();