Package org.apache.ace.deployment.verifier

Examples of org.apache.ace.deployment.verifier.VerifierService


import org.osgi.service.log.LogEntry;

public class VerifierTest {
    @Test(groups = { UNIT })
  public void testResolve() throws BundleException {
    VerifierService verifier = new VerifierServiceImpl();
    VerifyEnvironment env = verifier.createEnvironment(new HashMap<String, String>() {
      {
        put(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, VerifierService.EE_1_6);
        put(Constants.FRAMEWORK_OS_NAME, "macosx");
        put(Constants.FRAMEWORK_OS_VERSION, "10.5");
      }
View Full Code Here


    AssertJUnit.assertTrue(" Unable to resolve resolvable state.", env.verifyResolve(bundles, null, null));
  }
 
    @Test(groups = { UNIT })
  public void testResolveFail() throws BundleException {
    VerifierService verifier = new VerifierServiceImpl();
    VerifyEnvironment env = verifier.createEnvironment(new HashMap<String, String>(){
      {
        put(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, VerifierService.EE_1_6);
        put(Constants.FRAMEWORK_OS_NAME, "macosx");
        put(Constants.FRAMEWORK_OS_VERSION, "10.5");
      }
View Full Code Here

@SuppressWarnings({"deprecation"})
public class VerifierTest {
    @Test(groups = { UNIT })
  public void testResolve() throws BundleException {
    VerifierService verifier = new VerifierServiceImpl();
    VerifyEnvironment env = verifier.createEnvironment(new HashMap<String, String>() {
      {
        put(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, VerifierService.EE_1_6);
        put(Constants.FRAMEWORK_OS_NAME, "macosx");
        put(Constants.FRAMEWORK_OS_VERSION, "10.5");
      }
View Full Code Here

    AssertJUnit.assertTrue(" Unable to resolve resolvable state.", env.verifyResolve(bundles, null, null));
  }
 
    @Test(groups = { UNIT })
  public void testResolveFail() throws BundleException {
    VerifierService verifier = new VerifierServiceImpl();
    VerifyEnvironment env = verifier.createEnvironment(new HashMap<String, String>(){
      {
        put(Constants.FRAMEWORK_EXECUTIONENVIRONMENT, VerifierService.EE_1_6);
        put(Constants.FRAMEWORK_OS_NAME, "macosx");
        put(Constants.FRAMEWORK_OS_VERSION, "10.5");
      }
View Full Code Here

TOP

Related Classes of org.apache.ace.deployment.verifier.VerifierService

Copyright © 2018 www.massapicom. 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.