@@ -0,0 +1,1178 @@
+package amery.logic;%0A%0Aimport lombok.extern.slf4j.Slf4j;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by ahan on 28/02/2017.%0A */%0A@Slf4j%0Apublic class LogicTest %7B%0A%0A%09@Test%0A%09public void test1() %7B%0A%09%09Long vendorItemId = null;%0A%09%09boolean invalidEnhancement = false;%0A%09%09if (vendorItemId == null %7C%7C vendorItemId == 0 && !invalidEnhancement) %7B%0A%09%09%09log.debug(%22A%22);%0A%09%09%7D%0A%09%09vendorItemId = null;%0A%09%09invalidEnhancement = true;%0A%09%09if (vendorItemId == null %7C%7C vendorItemId == 0 && !invalidEnhancement) %7B%0A%09%09%09log.debug(%22B%22);%0A%09%09%7D%0A%09%09vendorItemId = null;%0A%09%09invalidEnhancement = true;%0A%09%09if ((vendorItemId == null %7C%7C vendorItemId == 0) && !invalidEnhancement) %7B%0A%09%09%09log.debug(%22B%22);%0A%09%09%7D%0A%09%09vendorItemId = 0L;%0A%09%09invalidEnhancement = true;%0A%09%09if (vendorItemId == null %7C%7C vendorItemId == 0 && !invalidEnhancement) %7B%0A%09%09%09log.debug(%22B%22);%0A%09%09%7D%0A%09%09vendorItemId = 0L;%0A%09%09invalidEnhancement = true;%0A%09%09if ((vendorItemId == null %7C%7C vendorItemId == 0) && !invalidEnhancement) %7B%0A%09%09%09log.debug(%22B%22);%0A%09%09%7D%0A%0A%09%7D%0A%0A%09@Test%0A%09public void test2() %7B%0A%09%09Long itemId = null;%0A%09%09itemId = (null != itemId && 0 != itemId) ? itemId : null;%0A%09%09log.debug(%22A%22);%0A%0A%09%09itemId = 0L;%0A%09%09itemId = (null != itemId && 0 != itemId) ? itemId : null;%0A%09%09log.debug(%22A%22);%0A%09%7D%0A%7D%0A

add logic check test