Package org.apache.torque.generator.outlet

Examples of org.apache.torque.generator.outlet.OutletResult


    @Test()
    public void testCountFive() throws GeneratorException
    {
        newlineOutlet.setCount(5);
        OutletResult result = newlineOutlet.execute(null);
        assertEquals("\n\n\n\n\n", result.getStringResult());
    }
View Full Code Here


        try
        {
            InputStream inputStream
                    = configurationProvider.getResourceInputStream(path);
            OutletResult result = new OutletResult(
                    IOUtils.toByteArray(inputStream));
            return result;
        }
        catch (IOException e)
        {
View Full Code Here

                new OutputAction("@param param1 description,of param1"));
        javadocOutlet.setMergepointMapping(
                new MergepointMapping(
                        "attributes",
                        mergepointActions));
        OutletResult result = javadocOutlet.execute(new ControllerState());
        assertTrue(result.isStringResult());
        assertEquals(
                    "    /**\n"
                  + "     * Test-body\n"
                  + "     * for.a,javadoc\n"
                  + "     *\n"
                  + "     * @param param1\n"
                  + "     *        description,\n"
                  + "     *        of\n"
                  + "     *        param1\n"
                  + "     */\n",
              result.getStringResult());
    }
View Full Code Here

    @Override
    public OutletResult execute(ControllerState controllerState)
            throws GeneratorException
    {
        return new OutletResult(
                "Test Outlet output; foo=" + foo + "; bar=" + bar);
    }
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.outlet.OutletResult

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.