本文整理汇总了Java中com.taobao.tddl.rule.TestUtils类的典型用法代码示例。如果您正苦于以下问题:Java TestUtils类的具体用法?Java TestUtils怎么用?Java TestUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TestUtils类属于com.taobao.tddl.rule包,在下文中一共展示了TestUtils类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: test21
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt>= 10,2,5 gmt< 10,2,7号中一个时间的
public void test21() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7, 00, 00, 01), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 00, 00, 00) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 00, 00, 00) },
s);
}
示例2: test41
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 +一段时间 gmt< 10,2,7号中一个时间的
public void test41() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5, 0, 0, 1), GreaterThan),
gcomp(getDate(110, 02, 7, 00, 00, 01), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 7, 0, 0, 1) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 7, 0, 0, 1) },
s);
}
示例3: test20
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt>= 10,2,5 gmt< 10,2,7号中一个时间的
public void test20() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7, 23, 59, 59), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 58) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 58) },
s);
}
示例4: test29
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt>= 10,2,5 +一段时间 gmt< 10,2,6号中一个时间的
public void test29() throws Exception {
btc = gand(gcomp(new Date(getDate(110, 02, 5).getTime() - 1l), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 6, 23, 59, 59), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 4, 23, 59, 59), getDate(110, 02, 5, 23, 59, 59),
getDate(110, 02, 6, 23, 59, 58) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 4, 23, 59, 59), getDate(110, 02, 5, 23, 59, 59),
getDate(110, 02, 6, 23, 59, 58) },
s);
}
示例5: test55
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 +一段时间 gmt< 10,2,7号中一个时间的
public void test55() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5, 0, 0, 1), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7, 23, 59, 59), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 7, 0, 0, 1), getDate(110, 02, 7, 23, 59, 59) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 7, 0, 0, 1), getDate(110, 02, 7, 23, 59, 59) },
s);
}
示例6: test54
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 +一段时间 gmt< 10,2,6号中一个时间的
public void test54() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5, 0, 0, 1), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 6, 23, 59, 59), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 23, 59, 59) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 23, 59, 59) },
s);
}
示例7: test35
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 gmt< 10,2,7号中一个时间的
public void test35() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5), GreaterThan),
gcomp(getDate(110, 02, 7, 23, 59, 59), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 59) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 59) },
s);
}
示例8: test16
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 +一段时间 gmt< 10,2,7号中一个时间的
public void test16() throws Exception {
// 会有两次比3月7号的被枚举出来,但实际上7号内的两个时间是不同的,一个0,0,0 ,一个23,59,59。目前暂时没有考虑去重的问题
btc = gand(gcomp(new Date(getDate(110, 02, 5).getTime() - 1l), GreaterThan),
gcomp(getDate(110, 02, 7, 00, 00, 01), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7) },
s);
}
示例9: test50
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 gmt< 10,2,7号中一个时间的
public void test50() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7, 23, 59, 59), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 59) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 59) },
s);
}
示例10: test15
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 +一段时间 gmt< 10,2,7号中一个时间的
public void test15() throws Exception {
btc = gand(gcomp(new Date(getDate(110, 02, 5).getTime() - 1l), GreaterThan),
gcomp(getDate(110, 02, 7, 23, 59, 59), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 58) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 23, 59, 58) },
s);
}
示例11: test24
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt>= 10,2,5 +一段时间 gmt< 10,2,6号中一个时间的
public void test24() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5, 0, 0, 1), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 6, 23, 59, 59), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 23, 59, 58) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 23, 59, 58) },
s);
}
示例12: test51
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 gmt< 10,2,7号中一个时间的
public void test51() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7, 00, 00, 01), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 00, 00, 01) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5), getDate(110, 02, 6), getDate(110, 02, 7),
getDate(110, 02, 7, 00, 00, 01) },
s);
}
示例13: test22
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt>= 10,2,5 +一段时间 gmt< 10,2,7
public void test22() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5, 0, 0, 1), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 23, 59, 59) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 23, 59, 59) },
s);
}
示例14: test31
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt>= 10,2,5 +一段时间 gmt< 10,2,7号中一个时间的
public void test31() throws Exception {
// 会有两次比3月7号的被枚举出来,但实际上7号内的两个时间是不同的,一个0,0,0 ,一个23,59,59。目前暂时没有考虑去重的问题
btc = gand(gcomp(new Date(getDate(110, 02, 5).getTime() - 1l), TestUtils.GreaterThanOrEqual),
gcomp(getDate(110, 02, 7, 00, 00, 01), LessThan));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 4, 23, 59, 59), getDate(110, 02, 5, 23, 59, 59),
getDate(110, 02, 6, 23, 59, 59), getDate(110, 02, 7) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 4, 23, 59, 59), getDate(110, 02, 5, 23, 59, 59),
getDate(110, 02, 6, 23, 59, 59), getDate(110, 02, 7) },
s);
}
示例15: test38
import com.taobao.tddl.rule.TestUtils; //导入依赖的package包/类
@Test
// @T gmt> 10,2,5 +一段时间 gmt< 10,2,6号中一个时间的,getDate(1267891199999l)
public void test38() throws Exception {
btc = gand(gcomp(getDate(110, 02, 5, 0, 0, 1), GreaterThan),
gcomp(getDate(110, 02, 6, 12, 11, 10), TestUtils.LessThanOrEqual));
Set<Object> s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 12, 11, 10) },
s);
s = e.getEnumeratedValue(btc, 7, 1, needMergeValueInCloseRange);
TestUtils.testSetDate(new Date[] { getDate(110, 02, 5, 0, 0, 1), getDate(110, 02, 6, 0, 0, 1),
getDate(110, 02, 6, 12, 11, 10) },
s);
}