Package org.apache.wookie.w3c

Examples of org.apache.wookie.w3c.W3CWidgetFactory


    fac.setOutputDirectory("FAIL");
  }
 
  @Test(expected = IOException.class)
  public void testSetOutputDirectoryReadOnly() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();
    fac.setOutputDirectory(testfolderreadonly.getPath());
  }
View Full Code Here


    fac.setOutputDirectory(testfolderreadonly.getPath());
  }
 
  @Test(expected = IOException.class)
  public void testSetOutputDirectoryInvalidType() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();
    fac.setOutputDirectory(wgt.getPath());
  }
View Full Code Here

    fac.setOutputDirectory(wgt.getPath());
  }
 
  @Test(expected = Exception.class)
  public void testDontSetOutputDirectory() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();   
    fac.parse(wgt);
  }
View Full Code Here

    fac.parse(wgt);
  }
 
  @Test(expected = NullPointerException.class)
  public void testSetNullEncodings() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory()
    fac.setEncodings(null);
  }
View Full Code Here

    fac.setEncodings(null);
  }
 
  @Test(expected = Exception.class)
  public void testSetNoEncodings() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();   
    fac.setEncodings(new String[]{});
  }
View Full Code Here

    fac.setEncodings(new String[]{});
  }
 
  @Test
  public void testSetFeaturesNull() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory()
    fac.setOutputDirectory(testfolder.getPath());
    fac.setFeatures(null);
    fac.parse(wgt);
  }
View Full Code Here

    fac.parse(wgt);
  }
 
  @Test(expected = NullPointerException.class)
  public void testSetLocalPathNull() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();
    fac.setLocalPath(null);
  }
View Full Code Here

    fac.setLocalPath(null);
  }
 
  @Test
  public void testSetLocalPath() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();
    fac.setLocalPath("/");
    fac.setOutputDirectory(testfolder.getPath());
    fac.parse(wgt);
  }
View Full Code Here

    fac.parse(wgt);
  }
 
  @Test(expected = NullPointerException.class)
  public void setLocalesNull() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();
    fac.setLocales(null);
    fac.setOutputDirectory(testfolder.getPath());
    fac.parse(wgt);   
  }
View Full Code Here

    fac.parse(wgt);   
  }
 
  @Test
  public void testSetLocales() throws Exception{
    W3CWidgetFactory fac = new W3CWidgetFactory();
    fac.setLocales(new String[]{"en"});
    fac.setOutputDirectory(testfolder.getPath());
    fac.parse(wgt);
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.w3c.W3CWidgetFactory

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.