// Path: de.hatoka.common/src/main/java/de/hatoka/common/capi/app/xslt/XSLTRenderer.java
// public class XSLTRenderer
// {
//     private final TransformerFactory transformerFactory = TransformerFactory.newInstance();
// 
//     public XSLTRenderer()
//     {
//         transformerFactory.setURIResolver(new ClassPathURIResolver());
//     }
// 
//     @Deprecated
//     public Map<String, Object> getParameter(String localizationResource, Locale locale)
//     {
//         return getParameter(localizationResource, locale, CountryHelper.UTC);
//     }
// 
//     public Map<String, Object> getParameter(String localizationResource, Locale locale, TimeZone timeZone)
//     {
//         Map<String, Object> result = new HashMap<>();
//         result.put(Lib.XSLT_LOCALIZER, new ResourceLocalizer(new LocalizationBundle(localizationResource,
//                         locale, timeZone)));
//         return result;
//     }
// 
//     private StreamSource getStreamSource(String resource) throws FileNotFoundException
//     {
//         URL url = getClass().getClassLoader().getResource(resource);
//         if (url == null)
//         {
//             throw new FileNotFoundException(resource);
//         }
//         return new StreamSource(url.toString());
//     }
// 
//     /**
//      * Render a jaxbElement with given xslt resource and
//      * @param jaxbElement
//      * @param stylesheet
//      * @param parameters
//      * @return
//      * @throws IOException
//      */
//     public String render(Object jaxbModel, String stylesheet, Map<String, Object> parameters) throws IOException
//     {
//         StringWriter writer = new StringWriter();
//         render(writer, jaxbModel, stylesheet, parameters);
//         return writer.toString();
//     }
// 
//     /**
//      * Render a jaxbElement with given xslt resource and
//      * @param writer write result to this writer
//      * @param jaxbModel date to render
//      * @param stylesheet xslt stylesheet resource
//      * @param parameters parameter for style sheet, like localizer, uriInfo (depends on stylesheet)
//      * @throws IOException
//      */
//     public void render(Writer writer, Object jaxbModel, String stylesheet, Map<String, Object> parameters) throws IOException
//     {
//         try
//         {
//             // Create Transformer
//             Transformer transformer = transformerFactory.newTransformer(getStreamSource(stylesheet));
//             for(Entry<String, Object> entry : parameters.entrySet())
//             {
//                 transformer.setParameter(entry.getKey(), entry.getValue());
//             }
//             // Source
//             JAXBContext jc = JAXBContext.newInstance(jaxbModel.getClass());
// 
//             // Transform
//             transformer.transform(new JAXBSource(jc, jaxbModel), new StreamResult(writer));
//         }
//         catch(JAXBException | TransformerException e)
//         {
//             throw new IOException("Can't process stylesheet: " + stylesheet, e);
//         }
//     }
// }


import java.io.IOException;
import java.util.Locale;
import org.custommonkey.xmlunit.XMLAssert;
import org.custommonkey.xmlunit.XMLUnit;
import org.junit.BeforeClass;
import org.junit.Test;
import org.xml.sax.SAXException;
import de.hatoka.common.capi.app.xslt.XSLTRenderer;
import de.hatoka.common.capi.business.CountryHelper;
import de.hatoka.common.capi.resource.ResourceLoader;
import de.hatoka.user.internal.app.forms.LoginForm;
package de.hatoka.user.internal.templates.app;




public class LoginTemplateTest
{
    private static final String ORIGIN = "http://testdomain.de/origin";
    private static final String RESOURCE_PREFIX = "de/hatoka/user/internal/templates/app/";
// Path: de.hatoka.common/src/main/java/de/hatoka/common/capi/app/xslt/XSLTRenderer.java
// public class XSLTRenderer
// {
//     private final TransformerFactory transformerFactory = TransformerFactory.newInstance();
// 
//     public XSLTRenderer()
//     {
//         transformerFactory.setURIResolver(new ClassPathURIResolver());
//     }
// 
//     @Deprecated
//     public Map<String, Object> getParameter(String localizationResource, Locale locale)
//     {
//         return getParameter(localizationResource, locale, CountryHelper.UTC);
//     }
// 
//     public Map<String, Object> getParameter(String localizationResource, Locale locale, TimeZone timeZone)
//     {
//         Map<String, Object> result = new HashMap<>();
//         result.put(Lib.XSLT_LOCALIZER, new ResourceLocalizer(new LocalizationBundle(localizationResource,
//                         locale, timeZone)));
//         return result;
//     }
// 
//     private StreamSource getStreamSource(String resource) throws FileNotFoundException
//     {
//         URL url = getClass().getClassLoader().getResource(resource);
//         if (url == null)
//         {
//             throw new FileNotFoundException(resource);
//         }
//         return new StreamSource(url.toString());
//     }
// 
//     /**
//      * Render a jaxbElement with given xslt resource and
//      * @param jaxbElement
//      * @param stylesheet
//      * @param parameters
//      * @return
//      * @throws IOException
//      */
//     public String render(Object jaxbModel, String stylesheet, Map<String, Object> parameters) throws IOException
//     {
//         StringWriter writer = new StringWriter();
//         render(writer, jaxbModel, stylesheet, parameters);
//         return writer.toString();
//     }
// 
//     /**
//      * Render a jaxbElement with given xslt resource and
//      * @param writer write result to this writer
//      * @param jaxbModel date to render
//      * @param stylesheet xslt stylesheet resource
//      * @param parameters parameter for style sheet, like localizer, uriInfo (depends on stylesheet)
//      * @throws IOException
//      */
//     public void render(Writer writer, Object jaxbModel, String stylesheet, Map<String, Object> parameters) throws IOException
//     {
//         try
//         {
//             // Create Transformer
//             Transformer transformer = transformerFactory.newTransformer(getStreamSource(stylesheet));
//             for(Entry<String, Object> entry : parameters.entrySet())
//             {
//                 transformer.setParameter(entry.getKey(), entry.getValue());
//             }
//             // Source
//             JAXBContext jc = JAXBContext.newInstance(jaxbModel.getClass());
// 
//             // Transform
//             transformer.transform(new JAXBSource(jc, jaxbModel), new StreamResult(writer));
//         }
//         catch(JAXBException | TransformerException e)
//         {
//             throw new IOException("Can't process stylesheet: " + stylesheet, e);
//         }
//     }
// }


// Path: de.hatoka.user/src/test/java/de/hatoka/user/internal/templates/app/LoginTemplateTest.java
import java.io.IOException;
import java.util.Locale;
import org.custommonkey.xmlunit.XMLAssert;
import org.custommonkey.xmlunit.XMLUnit;
import org.junit.BeforeClass;
import org.junit.Test;
import org.xml.sax.SAXException;
import de.hatoka.common.capi.app.xslt.XSLTRenderer;
import de.hatoka.common.capi.business.CountryHelper;
import de.hatoka.common.capi.resource.ResourceLoader;
import de.hatoka.user.internal.app.forms.LoginForm;

package de.hatoka.user.internal.templates.app;




public class LoginTemplateTest
{
    private static final String ORIGIN = "http://testdomain.de/origin";
    private static final String RESOURCE_PREFIX = "de/hatoka/user/internal/templates/app/";
    private static final XSLTRenderer RENDERER = new XSLTRenderer();