BatchUtil { public static String cat(Object... args) { StringBuilder str = new StringBuilder(); if (args == null) { return null; } for (Object o : args) { if (o != null) { str.append(o); } } return str.toString(); } protected  BatchUtil(); static String cat(Object... args); static String getInfoLogStartMsg(String jobCd); static String getInfoLogEndMsg(String jobCd); static TransactionDefinition getTransactionDefinition(); static TransactionDefinition getTransactionDefinition(
            int propagationBehavior, int isolationLevel, int timeout,
            boolean readOnly); static TransactionStatus startTransaction(
            PlatformTransactionManager tran); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, Log log); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, int propagationBehavior,
            int isolationLevel, int timeout, boolean readOnly); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, int propagationBehavior,
            int isolationLevel, int timeout, boolean readOnly, Log log); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, TransactionDefinition def); static TransactionStatus startTransaction(
            PlatformTransactionManager tran, TransactionDefinition def, Log log); static Map<String, TransactionStatus> startTransactions(
            TransactionDefinition tranDef, Map<?, ?> tranMap); static Map<String, TransactionStatus> startTransactions(
            TransactionDefinition tranDef, Map<?, ?> tranMap, Log log); static void commitTransaction(PlatformTransactionManager tran,
            TransactionStatus stat); static void commitTransaction(PlatformTransactionManager tran,
            TransactionStatus stat, Log log); static void commitTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap); static void commitTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap, Log log); static void endTransaction(PlatformTransactionManager tran,
            TransactionStatus stat); static void endTransaction(PlatformTransactionManager tran,
            TransactionStatus stat, Log log); static boolean endTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap); static boolean endTransactions(Map<?, ?> tranMap,
            Map<String, TransactionStatus> statMap, Log log); static Object setSavepoint(TransactionStatus stat); static Object setSavepoint(TransactionStatus stat, Log log); static void releaseSavepoint(TransactionStatus stat, Object savepoint); static void releaseSavepoint(TransactionStatus stat,
            Object savepoint, Log log); static void rollbackSavepoint(TransactionStatus stat,
            Object savepoint); static void rollbackSavepoint(TransactionStatus stat,
            Object savepoint, Log log); static void rollbackTransaction(PlatformTransactionManager tran,
            TransactionStatus stat); static void rollbackTransaction(PlatformTransactionManager tran,
            TransactionStatus stat, Log log); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat, Log log); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def); static TransactionStatus commitRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def, Log log); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat, Log log); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def); static TransactionStatus rollbackRestartTransaction(
            PlatformTransactionManager tran, TransactionStatus stat,
            TransactionDefinition def, Log log); @SuppressWarnings({"rawtypes", "unchecked"}) static E[] changeListToArray(List<E> list, Class clazz); static List<String> getProperties(String propertyName, String grpKey); static String getMemoryInfo();  }
@Test public void testCat01() throws Exception { String[] args = { "test1", "test2" }; String result = BatchUtil.cat((Object[]) args); assertEquals("test1test2", result); }
@Test public void testCat02() throws Exception { String[] args = null; String result = BatchUtil.cat((Object[]) args); assertNull(result); }
@Test public void testCat03() throws Exception { String[] args = { "" }; String result = BatchUtil.cat((Object[]) args); assertEquals("", result); }
@Test public void testCat04() throws Exception { String[] args = { "test1", null, "test2" }; String result = BatchUtil.cat((Object[]) args); assertEquals("test1test2", result); }