@Test // @Description("Partial Mtype JS file should produce meaningful JSTType. " + // "Type name and package should be proper along with expects for itype") public void testExpects() { CompilationUnitDeclaration ast = prepareAst("expectsTranslatorTestFile.js.txt", null); IJstType jstType = SyntaxTreeFactory2.createJST(ast, new TranslateCtx()); assertNotNull(jstType); assertTrue(jstType.isMixin()); assertEquals("com.ebay.vjet", jstType.getPackage().getName()); assertEquals("M", jstType.getSimpleName()); List<? extends IJstType> expects = jstType.getExpects(); assertNotNull(expects); assertEquals(1, expects.size()); assertEquals("com.ebay.vjet", expects.get(0).getPackage().getName()); assertEquals("I", expects.get(0).getSimpleName()); }