コード例 #1
0
 @Test
 public void testRhsEmptyProperties_shouldFail() throws Exception {
   ProcessBag processBag = new ProcessBag();
   Map<String, Object> props = Maps.newHashMap();
   props.put("a", "b");
   processBag.setProperties(props);
   assertFalse(processBag.equals(new ProcessBag()));
 }
コード例 #2
0
 @Test
 public void testLhsEmptyProperties_shouldSucceed() throws Exception {
   ProcessBag processBag = new ProcessBag();
   HashMap<String, Object> props = Maps.newHashMap();
   props.put("a", "b");
   processBag.setProperties(props);
   assertTrue(new ProcessBag().equals(processBag));
 }