From 641f0b1190b84227ae1407c641c92c0b1e5ed013 Mon Sep 17 00:00:00 2001 From: weli Date: Sun, 29 Oct 2023 20:49:07 +0800 Subject: [PATCH] null checking test --- .../src/test/java/org/jberet/se/BatchSEEnvironmentTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jberet-se/src/test/java/org/jberet/se/BatchSEEnvironmentTest.java b/jberet-se/src/test/java/org/jberet/se/BatchSEEnvironmentTest.java index 4ac0f91c8..e5e3093d2 100644 --- a/jberet-se/src/test/java/org/jberet/se/BatchSEEnvironmentTest.java +++ b/jberet-se/src/test/java/org/jberet/se/BatchSEEnvironmentTest.java @@ -168,6 +168,7 @@ public void testPropParsings() { String p7 = "${INVALID}}"; String p8 = "${BAR:}"; String p9 = "${}"; + String p10 = "${BAR}"; Assert.assertEquals("foo", BatchSEEnvironment.parseProp(p1)); @@ -179,6 +180,7 @@ public void testPropParsings() { Assert.assertEquals("${INVALID}}", BatchSEEnvironment.parseProp(p7)); Assert.assertEquals("", BatchSEEnvironment.parseProp(p8)); Assert.assertEquals("${}", BatchSEEnvironment.parseProp(p9)); + Assert.assertNull(BatchSEEnvironment.parseProp(p10)); } private ThreadPoolExecutor verifyThreadPool(final int coreSize,