예제 #1
0
  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()));
  }
예제 #2
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   ctx = new ExecutionContextImpl();
   ctx.registerMetaModel(new JavaMetaModel("java", new JavaBeansStrategy()));
 }