Examples of generate()


Examples of org.springmodules.template.Template.generate()

   
    public String render() {
        Template template = this.templateResolver.resolve(this.templateName, this.characterEncoding, this.locale);
        StringWriter writer = new StringWriter();
       
        template.generate(writer, this.templateModel);
       
        return writer.toString();
    }

    /**
 
View Full Code Here

Examples of org.springside.examples.showcase.common.dao.UIDGenerator.generate()

public class UIDGeneratorTest {

  @Test
  public void generateId() {
    UIDGenerator generator = new UIDGenerator();
    String id = (String) generator.generate(null, null);
    assertTrue(id.length() == 16);
    System.out.println(id);
  }
}
View Full Code Here

Examples of org.teavm.javascript.ni.Injector.generate()

            if (expr.getLocation() != null) {
                pushLocation(expr.getLocation());
            }
            Injector injector = getInjector(expr.getMethod());
            if (injector != null) {
                injector.generate(new InjectorContextImpl(expr.getArguments()), expr.getMethod());
            } else {
                if (expr.getType() == InvocationType.DYNAMIC) {
                    expr.getArguments().get(0).acceptVisitor(this);
                }
                String className = naming.getNameFor(expr.getMethod().getClassName());
View Full Code Here

Examples of org.teavm.tooling.TeaVMTestTool.generate()

        tool.setLog(new ConsoleTeaVMToolLog());
        tool.getProperties().putAll(System.getProperties());
        long start = System.currentTimeMillis();
        try {
            tool.generate();
        } catch (TeaVMToolException e) {
            e.printStackTrace(System.err);
            System.exit(-2);
        }
        System.out.println("Operation took " + (System.currentTimeMillis() - start) + " milliseconds");
View Full Code Here

Examples of org.teavm.tooling.TeaVMTool.generate()

        }
        tool.setLog(new ConsoleTeaVMToolLog());
        tool.getProperties().putAll(System.getProperties());

        try {
            tool.generate();
            tool.checkForMissingItems();
        } catch (Exception e) {
            e.printStackTrace(System.err);
            System.exit(-2);
        }
View Full Code Here

Examples of org.teiid.query.util.Permutation.generate()

        //and non-exhaustive searches
        if (regionCount > EXHAUSTIVE_SEARCH_GROUPS) {
            exhaustive = Math.max(2, EXHAUSTIVE_SEARCH_GROUPS - (int)Math.ceil(Math.sqrt((regionCount - EXHAUSTIVE_SEARCH_GROUPS))));
        }
       
        Iterator permIter = perms.generate(exhaustive);
       
        while(permIter.hasNext()) {
            Object[] order = (Object[]) permIter.next();

            double score = region.scoreRegion(order, 0, metadata, capFinder, context);
View Full Code Here

Examples of org.uiautomation.ios.utils.JSTemplate.generate()

        case "down": template = scrollDownTemplate; break;
        case "left": template = scrollLeftTemplate; break;
        case "right": template = scrollRightTemplate; break;
        default: throw new WebDriverException("Invalid value for scrolling direction");
      }
      js = template.generate(sessionId, reference);
    } else if (payload.has("name")) {
      String name = payload.optString("name");
      js = scrollToNameTemplate.generate(sessionId, reference, name);
    } else if (payload.has("predicateString")) {
      String predicateString = payload.optString("predicateString");
View Full Code Here

Examples of org.xrace.view.admin.evenements.course.inscriptions.reports.InscriptionsCompleteReport.generate()

  public void testGenerate1() throws Exception
  {
    InscriptionsCompleteReport report = new InscriptionsCompleteReport(
        courseXc1, getDossierInscriptionService());
    HSSFWorkbook wb = report.generate();
    Assert.assertEquals(6, wb.getSheetAt(0).getLastRowNum());
  }

  public void testGenerate2() throws Exception
  {
View Full Code Here

Examples of org.xrace.view.admin.evenements.course.inscriptions.reports.InscriptionsEquipeReport.generate()

  public void testGenerate1() throws Exception
  {
    InscriptionsEquipeReport report = new InscriptionsEquipeReport(
        courseRvm, getDossierInscriptionService());
    HSSFWorkbook wb = report.generate();
    Assert.assertEquals(7, wb.getSheetAt(0).getLastRowNum());
  }

  public void testGenerate2() throws Exception
  {
View Full Code Here

Examples of org.xrace.view.admin.evenements.course.inscriptions.reports.InscriptionsGecoReport.generate()

  public void testGenerate1() throws Exception
  {
    InscriptionsGecoReport report = new InscriptionsGecoReport(courseXc1,
        getDossierInscriptionService());
    HSSFWorkbook wb = report.generate();
    Assert.assertEquals(3, wb.getSheetAt(0).getLastRowNum());
  }

  public void testGenerate2() throws Exception
  {
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.