use of io.crnk.gen.typescript.transform.TSMetaTransformationContext in project crnk-framework by crnk-project.
the class TSGeneratorTest method throwExceptionWhenMetaElementNotMappedToNpmPackage.
@Test(expected = UnsupportedOperationException.class)
public void throwExceptionWhenMetaElementNotMappedToNpmPackage() {
TSMetaTransformationContext transformationContext = generator.createMetaTransformationContext();
MetaElement metaElement = Mockito.mock(MetaElement.class);
metaElement.setId("does.not.exist");
transformationContext.getNpmPackage(metaElement);
}
use of io.crnk.gen.typescript.transform.TSMetaTransformationContext in project crnk-framework by crnk-project.
the class TSGeneratorTest method throwExceptionWhenMetaElementNotMappedToDirectory.
@Test(expected = UnsupportedOperationException.class)
public void throwExceptionWhenMetaElementNotMappedToDirectory() {
TSMetaTransformationContext transformationContext = generator.createMetaTransformationContext();
MetaElement metaElement = Mockito.mock(MetaElement.class);
metaElement.setId("does.not.exist");
transformationContext.getDirectory(metaElement);
}
Aggregations