Examples of resetAndLog()


Examples of org.eclipse.xtext.util.StopWatch.resetAndLog()

    for (final Integer i : _upTo) {
      LangDef _langDef = this.langDef();
      String _formatCode = utils.formatCode("mein foo ist bar nicht baz.", _langDef);
      code = _formatCode;
    }
    watch.resetAndLog("keywords");
    Assert.assertEquals("mein&nbsp;<span class=\"keyword\">foo</span>&nbsp;ist&nbsp;<span class=\"keyword\">bar</span>&nbsp;nicht&nbsp;<span class=\"keyword\">baz</span>.", code);
  }
 
  @Test
  public void testFormatCode_01() {
View Full Code Here

Examples of org.eclipse.xtext.util.StopWatch.resetAndLog()

    String code = null;
    StopWatch watch = new StopWatch();
    for (int i = 0; i < 2 ;i++) {
      code = utils.formatCode("mein foo ist bar nicht baz.", langDef);
    }
    watch.resetAndLog("keywords");
    assertEquals("mein&nbsp;<span class=\"keyword\">foo</span>&nbsp;ist&nbsp;<span class=\"keyword\">bar</span>&nbsp;nicht&nbsp;<span class=\"keyword\">baz</span>.", code);
  }
  public void testFormatCode_01() throws Exception {
    LangDef langDef = XdocFactory.eINSTANCE.createLangDef();
    langDef.getKeywords().add("foo");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.