Posts listed under tag

Junit

How to implement Tmar tests

Before implementing your first test you have to code a startup class. This class will contains whatever is needed to lead the application context and create controller. Here it is : package org.jspresso.hrsample.ext.backend; import org.jspresso.contrib.test.application .startup.AbstractTmar4JUnitBackendStartup; public class TmarBackendStartup extends AbstractTmar4JUnitBackendStartup { @Override protected String getApplicationContextKey() { return “hrsample-ext-backend-context”; } @Override protected String getBeanFactorySelector() { […]

How to implement JUnit tests

Before implementing your first test you have to code a startup class. This class will contains whatever is needed to lead the application context and create controller. Here it is : package org.jspresso.hrsample.backend; import org.jspresso.framework.application.startup.AbstractBackendStartup; public class BackTestStartup extends AbstractBackendStartup { @Override protected String getApplicationContextKey() { return “hrsample-backend-context”; } @Override protected String getBeanFactorySelector() { return […]