@Test public void test_一个大于一个null在一个and中() throws Exception { btc = gand(gcomp(3, LessThanOrEqual), null); try { e.getEnumeratedValue(btc, 64, 1, needMergeValueInCloseRange); } catch (IllegalArgumentException e) { assertEquals("input value is not a comparative: null", e.getMessage()); } }
@Test public void test_没有自增的closeinterval() throws Exception { btc = gand(gcomp(3, GreaterThan), gcomp(5, LessThanOrEqual)); try { e.getEnumeratedValue(btc, null, null, needMergeValueInCloseRange); } catch (IllegalArgumentException e) { assertEquals("当原子增参数或叠加参数为空时,不支持在sql中使用范围选择,如id>? and id<?", e.getMessage()); } }