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