Package org.concordion.internal
Class FixtureSpecificationMapper
java.lang.Object
org.concordion.internal.FixtureSpecificationMapper
Maps from a fixture class to a specification and vice-versa.
Encapsulates the rules for fixture class naming:
- The fixture class must be in the same package as its specification.
- The fixture class must be named the same as the specification, with an optional suffix of "Test" or "Fixture".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
findFixtureClass
(Resource hrefResource) static String
removeSuffixFromFixtureName
(String fixtureName) static Resource
toSpecificationResource
(FixtureDeclarations fixtureDeclarations, String specificationSuffix)
-
Constructor Details
-
FixtureSpecificationMapper
public FixtureSpecificationMapper()
-
-
Method Details
-
toSpecificationResource
public static Resource toSpecificationResource(FixtureDeclarations fixtureDeclarations, String specificationSuffix) -
removeSuffixFromFixtureName
-
findFixtureClass
- Throws:
ClassNotFoundException
-