Package net.sf.oqt.core

Examples of net.sf.oqt.core.Serializer.deserialize()


  public void testExecute() throws MojoExecutionException, MojoFailureException, ClassNotFoundException, IOException {
    mojo.execute();
    File outputSer = new File(project.getBuild().getDirectory() + "/querytranslator/output.ser");
    assertThat(outputSer).isNotNull().exists();
    Serializer s = new Serializer(project);
    ResultVO r = s.deserialize();
    assertThat(r).isNotNull();
    Collection<PackageVO> packages = r.getPackages();
    assertThat(packages).isNotNull().isNotEmpty().hasSize(3);
    Collection<EntityVO> entities = r.getPackages().iterator().next().getEntities();
    assertThat(entities).isNotNull().isNotEmpty().hasSize(TestInfo.numberOfEntities - TestInfo.numberOfEntitiesInGenericPackage - TestInfo.numberOfEntitiesInSubPackage);
View Full Code Here


            final String titleJPQLQueries = "List of JPQL queries";
            final String titleSQLQueries = "List of SQL Queries";
            final String titleFaults = "List of Faulty Queries";

            final Serializer s = new Serializer(project);
            final ResultVO result = s.deserialize();
            if (result == null) {
                getLog().warn("No result found on the output, make sure the translate goal was ran before the report goal");
                return;
            }
            if (result.getPackages().isEmpty()) {
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.