unused-saved/src/org/apache/uima/cas/impl/JCasCoverClassFactoryTest.java [43:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void testCreateJCasCoverClass() throws InvalidXMLException, IOException, ResourceInitializationException {
    File file = JUnitExtension.getFile("JCasGen/typeSystemAllKinds.xml");
    TypeSystemDescription tsDesc = UIMAFramework.getXMLParser().parseTypeSystemDescription(
            new XMLInputSource(file));
   
    CAS cas = CasCreationUtils.createCas(tsDesc, null, null);
    
    JCasCoverClassFactory jcf = new JCasCoverClassFactory();
    
    byte[] r = jcf.createJCasCoverClass((TypeImpl) cas.getTypeSystem().getType("pkg.sample.name.All"));

    Path root = Paths.get(".");  // should resolve to the project path
    Path dir = root.resolve("temp/test/JCasGen");
    dir.toFile().mkdirs();
    Files.write(dir.resolve("testOutputAllKinds.class"), r);
    
    System.out.println("debug: generated byte array");
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



unused-saved/src/org/apache/uima/jcas/impl/JCasCoverClassFactoryTest.java [42:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void testCreateJCasCoverClass() throws InvalidXMLException, IOException, ResourceInitializationException {
    File file = JUnitExtension.getFile("JCasGen/typeSystemAllKinds.xml");
    TypeSystemDescription tsDesc = UIMAFramework.getXMLParser().parseTypeSystemDescription(
            new XMLInputSource(file));
   
    CAS cas = CasCreationUtils.createCas(tsDesc, null, null);
    
    JCasCoverClassFactory jcf = new JCasCoverClassFactory();
    
    byte[] r = jcf.createJCasCoverClass((TypeImpl) cas.getTypeSystem().getType("pkg.sample.name.All"));

    Path root = Paths.get(".");  // should resolve to the project path
    Path dir = root.resolve("temp/test/JCasGen");
    dir.toFile().mkdirs();
    Files.write(dir.resolve("testOutputAllKinds.class"), r);
    
    System.out.println("debug: generated byte array");
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



