templates.util.ClobUtilTest.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoplsp Show documentation
Show all versions of autoplsp Show documentation
Maven plugin to generate Java classes from StoredProcedure and Functions in Database
package ${javaPackage}.util;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.runners.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
public class ClobUtilTest {
@InjectMocks
ClobUtilImpl clobUtil;
@Test
public void testInputNull() {
Assert.assertNull(clobUtil.process(null));
}
/*
@Test
public void testInputNotNullFail() {
java.util.Map map = new java.util.HashMap<<#if !diamond>String, Object>();
clobUtil.process(map);
}
@Test(expected = java.sql.SQLException.class)
public void testInputResponseError() {
java.util.Map map = new java.util.HashMap<<#if !diamond>String, Object>();
map.put("${outParameterCode}", 1${successCode}1);
map.put("${outParameterMessage}", "ERROR");
clobUtil.process(map);
}
@Test
public void testInputOk() {
java.util.Map map = new java.util.HashMap<<#if !diamond>String, Object>();
map.put("${outParameterCode}", ${successCode});
map.put("${outParameterMessage}", "OK");
clobUtil.process(map);
}
*/
}