public final void testExpressionProposal1() { final String s = "context String if "; ctx = (ExecutionContextImpl) CheckFastAnalyzer.computeExecutionContext(s, ctx); assertEquals(Partition.EXPRESSION, CheckFastAnalyzer.computePartition(s)); final List<Object> ps = getProposals(s); assertTrue(!ps.isEmpty()); assertTrue(containsProposal(ps, "this", ctx.getStringType())); }
@Override protected void setUp() throws Exception { super.setUp(); ctx = new ExecutionContextImpl(); ctx.registerMetaModel(new JavaMetaModel("java", new JavaBeansStrategy())); }