Skip to content

Instantly share code, notes, and snippets.

@yamen
Forked from johndemic/MuleLicenseFunctionalTest.java
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamen/a3ad8dd920c7c3b64b7b to your computer and use it in GitHub Desktop.
Save yamen/a3ad8dd920c7c3b64b7b to your computer and use it in GitHub Desktop.
@BeforeClass
public static void installLicense() throws Exception {
LicenseManager licenseManager = LicenseManagementFactory.getInstance()
.createLicenseManager(LicenseManagementFactory.MULE_EE);
MuleLicenseKey license = new MuleLicenseKey();
license.setLicenseKeyFile(MyFunctionalTestCase.class
.getResource("/test.lic").getPath());
licenseManager.install(license);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment