Package org.stjs

Source Code of org.stjs.DependencyCycleTest

package org.stjs;

import java.io.File;

import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import org.junit.Test;

public class DependencyCycleTest {
  @SuppressWarnings("unchecked")
  @Test
  public void testPackageIt() throws Exception {
    File testDir = ResourceExtractor.simpleExtractResources(getClass(), "/project-with-cycles");

    Verifier verifier = new Verifier(testDir.getAbsolutePath());
    verifier.deleteArtifact("org.st-js", "project-with-cycles", "1.0.0-SNAPSHOT", "jar");

    try {
      verifier.getCliOptions().add("-Dstjs.version=" + System.getProperty("stjs.version"));
      verifier.executeGoal("install");
    }
    catch (Exception e) {
      // it should break here
    }

    verifier.verifyTextInLog("Cycles are detected");

  }
}
TOP

Related Classes of org.stjs.DependencyCycleTest

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.