Search in sources :

Example 1 with TSMetaTransformationOptions

use of io.crnk.gen.typescript.transform.TSMetaTransformationOptions in project crnk-framework by crnk-project.

the class TSGeneratorTest method throwExceptionWhenTransformingUnknownMetaElement.

@Test(expected = IllegalStateException.class)
public void throwExceptionWhenTransformingUnknownMetaElement() {
    MetaElement metaElement = Mockito.mock(MetaElement.class);
    metaElement.setId("does.not.exist");
    TSMetaTransformationOptions options = Mockito.mock(TSMetaTransformationOptions.class);
    generator.transform(metaElement, options);
}
Also used : TSMetaTransformationOptions(io.crnk.gen.typescript.transform.TSMetaTransformationOptions) MetaElement(io.crnk.meta.model.MetaElement) Test(org.junit.Test)

Aggregations

TSMetaTransformationOptions (io.crnk.gen.typescript.transform.TSMetaTransformationOptions)1 MetaElement (io.crnk.meta.model.MetaElement)1 Test (org.junit.Test)1