Examples of WebObjectsLocator


Examples of org.objectstyle.woproject.maven2.wobootstrap.locator.WebObjectsLocator

public class AbstractBootstrapTestCase {
  protected AbstractBootstrapMojo mojo;

  public WebObjectsLocator getMockLocator() {
    WebObjectsLocator mockLocator = EasyMock.createMock(WebObjectsLocator.class);

    File versionFile = FileUtils.toFile(getClass().getResource("/version.plist"));

    EasyMock.expect(mockLocator.getWebObjectsVersionFile()).andReturn(versionFile);

    EasyMock.replay(new Object[] { mockLocator });

    return mockLocator;
  }
View Full Code Here

Examples of org.objectstyle.woproject.maven2.wobootstrap.locator.WebObjectsLocator

    output = new String[] { "JavaDirectToWeb", "JavaFoundation", "javaeoutil", "JavaXML" };

    File versionFile = FileUtils.toFile(getClass().getResource("/version.plist"));

    WebObjectsLocator mockLocator = EasyMock.createMock(WebObjectsLocator.class);

    EasyMock.expect(mockLocator.getWebObjectsVersionFile()).andReturn(versionFile);

    EasyMock.replay(new Object[] { mockLocator });

    mojo = new MockBootstrapMojo(mockLocator);
  }
View Full Code Here

Examples of org.objectstyle.woproject.maven2.wobootstrap.locator.WebObjectsLocator

    assertNull(mojo.getArtifactIdForJar(null));
    assertNull(mojo.fillProperties(null));
  }

  public void testWarningForNotMappedArtifact() throws Exception {
    WebObjectsLocator mockLocator = EasyMock.createMock(WebObjectsLocator.class);

    File versionFile = FileUtils.toFile(getClass().getResource("/version.plist"));

    EasyMock.expect(mockLocator.getWebObjectsVersionFile()).andReturn(versionFile);

    File file = FileUtils.toFile(getClass().getResource("/mock-jar1.jar")).getParentFile();

    EasyMock.expect(mockLocator.getWebObjectsLibFolder()).andReturn(file);

    EasyMock.replay(mockLocator);

    mojo.locator = mockLocator;
    mojo.nullFillProperties = true;
View Full Code Here

Examples of org.objectstyle.woproject.maven2.wobootstrap.locator.WebObjectsLocator

    assertThat(mojo.getLog().warningCount, is(2));
    assertThat(mojo.executeGoalCount, is(0));
  }

  public void testWebObjectsNotInstalled() throws Exception {
    WebObjectsLocator mockLocator = EasyMock.createMock(WebObjectsLocator.class);

    EasyMock.expect(mockLocator.getWebObjectsVersionFile()).andReturn(null);

    mojo.locator = mockLocator;

    EasyMock.replay(new Object[] { mockLocator });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.