Search in sources :

Example 1 with Parser

use of org.apache.aries.subsystem.core.archive.BundleRequiredExecutionEnvironmentHeader.Clause.ExecutionEnvironment.Parser in project aries by apache.

the class BundleRequiredExecutionEnvironmentHeaderTest method doTestParser.

private void doTestParser(String clause, String name, Version version) {
    ExecutionEnvironment ee = null;
    try {
        ee = new Parser().parse(clause);
    } catch (Exception e) {
        fail("Unable to parse execution environment from clause " + clause);
    }
    assertExecutionEnvironmentName(ee, name);
    assertExecutionEnvironmentVersion(ee, version);
}
Also used : ExecutionEnvironment(org.apache.aries.subsystem.core.archive.BundleRequiredExecutionEnvironmentHeader.Clause.ExecutionEnvironment) Parser(org.apache.aries.subsystem.core.archive.BundleRequiredExecutionEnvironmentHeader.Clause.ExecutionEnvironment.Parser)

Aggregations

ExecutionEnvironment (org.apache.aries.subsystem.core.archive.BundleRequiredExecutionEnvironmentHeader.Clause.ExecutionEnvironment)1 Parser (org.apache.aries.subsystem.core.archive.BundleRequiredExecutionEnvironmentHeader.Clause.ExecutionEnvironment.Parser)1