@@ -0,0 +1,1576 @@
+package com.wizzardo.http.framework.template.taglib;%0A%0Aimport com.wizzardo.http.framework.WebApplicationTest;%0Aimport com.wizzardo.http.framework.template.*;%0Aimport com.wizzardo.http.framework.template.taglib.g.FormatBoolean;%0Aimport com.wizzardo.tools.xml.Node;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Collections;%0A%0A/**%0A * Created by wizzardo on 24.05.15.%0A */%0Apublic class FormatBooleanTest extends WebApplicationTest %7B%0A%0A    @Before%0A    public void setup() %7B%0A        TagLib.findTags(Collections.singletonList(FormatBoolean.class));%0A    %7D%0A%0A    @Test%0A    public void test_1() %7B%0A        Node n = Node.parse(%22%3Cdiv%3E%3Cg:formatBoolean boolean=%5C%22$%7BmyBoolean%7D%5C%22/%3E%3C/div%3E%22, true);%0A%0A        RenderableList l = new RenderableList();%0A        ViewRenderer.prepare(n.children(), l, %22%22, %22%22);%0A%0A        Model model = new Model();%0A        model.put(%22myBoolean%22, true);%0A        RenderResult result = l.get(model);%0A%0A        Assert.assertEquals(%22%22 +%0A                %22%3Cdiv%3E%5Cn%22 +%0A                %22    true%5Cn%22 +%0A                %22%3C/div%3E%5Cn%22, result.toString());%0A    %7D%0A%0A    @Test%0A    public void test_2() %7B%0A        Node n = Node.parse(%22%3Cg:formatBoolean boolean=%5C%22$%7Bi %3E 0%7D%5C%22 true=%5C%22$i %3E 0%5C%22 false=%5C%22$i %3C= 0%5C%22/%3E%22, true);%0A%0A        RenderableList l = new RenderableList();%0A        ViewRenderer.prepare(n.children(), l, %22%22, %22%22);%0A%0A        Model model = new Model();%0A%0A        model.put(%22i%22, 1);%0A        Assert.assertEquals(%221 %3E 0%5Cn%22, l.get(model).toString());%0A%0A        model.put(%22i%22, -1);%0A        Assert.assertEquals(%22-1 %3C= 0%5Cn%22, l.get(model).toString());%0A    %7D%0A%7D%0A

add tests for FormatBoolean