Package com.pugh.sockso.templates.web

Source Code of com.pugh.sockso.templates.web.IJavascriptTest

package com.pugh.sockso.templates.web;

import com.pugh.sockso.Properties;
import com.pugh.sockso.StringProperties;

import com.pugh.sockso.tests.TemplateTestCase;
import com.pugh.sockso.tests.TestLocale;

import org.jamon.Renderer;

public class IJavascriptTest extends TemplateTestCase {

    private Properties p;

    @Override
    protected void setUp() {
        p = new StringProperties();
    }

    public Renderer getTemplate() {
        IJavascript tpl = new IJavascript();
        tpl.setLocale( new TestLocale() );
        tpl.setProperties( p );
        return tpl.makeRenderer();
    }

    public void testPropertiesCanBeLessThen4Characters() {
        p.set( "foo", "bar" );
        render();
    }

}
TOP

Related Classes of com.pugh.sockso.templates.web.IJavascriptTest

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.