Package org.apache.wookie.flatpack

Examples of org.apache.wookie.flatpack.FlatpackFactory


   * is specified
   * @throws Exception
   */
  @Test(expected=Exception.class)
  public void testNoInstance() throws Exception{
    FlatpackFactory flatfac = new FlatpackFactory(null);
    flatfac.setInputWidget(null); // this is the original .wgt
    @SuppressWarnings("unused")
    File file = flatfac.pack(); // Get the new .wgt file 
  }
View Full Code Here


    IWidgetInstance instance = new WidgetInstanceMock();
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println(file.getAbsolutePath());
View Full Code Here

    IWidgetInstance instance = new WidgetInstanceMock();
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setParser(fac);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    flatfac.setFlatpackFolder(flatpack); // flatpack is our new temp folder. This would probably be "/flatpack" or similar in deployment
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println(file.getAbsolutePath());
View Full Code Here

    IWidgetInstance instance = new WidgetInstanceMock();
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println("createFeatureFlatpackUsingDefaults: "+file.getAbsolutePath());
View Full Code Here

    instance.setPreferences(prefs);
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setParser(fac);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    flatfac.setFlatpackFolder(flatpack); // flatpack is our new temp folder. This would probably be "/flatpack" or similar in deployment
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println(file.getAbsolutePath());
View Full Code Here

    instance.setPreferences(prefs);
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setParser(fac);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    flatfac.setFlatpackFolder(flatpack); // flatpack is our new temp folder. This would probably be "/flatpack" or similar in deployment
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println(file.getAbsolutePath());
View Full Code Here

   * is specified
   * @throws Exception
   */
  @Test(expected=Exception.class)
  public void testNoInstance() throws Exception{
    FlatpackFactory flatfac = new FlatpackFactory(null);
    flatfac.setInputWidget(null); // this is the original .wgt
    @SuppressWarnings("unused")
    File file = flatfac.pack(); // Get the new .wgt file 
  }
View Full Code Here

    IWidgetInstance instance = new WidgetInstanceMock();
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println(file.getAbsolutePath());
View Full Code Here

    IWidgetInstance instance = new WidgetInstanceMock();
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setParser(fac);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    flatfac.setFlatpackFolder(flatpack); // flatpack is our new temp folder. This would probably be "/flatpack" or similar in deployment
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println(file.getAbsolutePath());
View Full Code Here

    IWidgetInstance instance = new WidgetInstanceMock();
   
    //
    // Flatpack it
    //
    FlatpackFactory flatfac = new FlatpackFactory(instance);
    flatfac.setInputWidget(testWidget); // this is the original .wgt
    File file = flatfac.pack(); // Get the new .wgt file
 
    //
    // Test it works!
    //
    System.out.println("createFeatureFlatpackUsingDefaults: "+file.getAbsolutePath());
View Full Code Here

TOP

Related Classes of org.apache.wookie.flatpack.FlatpackFactory

Copyright © 2018 www.massapicom. 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.