All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.util.ClobUtilTest.ftl Maven / Gradle / Ivy

Go to download

Maven plugin to generate Java classes from StoredProcedure and Functions in Database

There is a newer version: 1.8.20
Show newest version
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);
    }
*/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy