コード例 #1
0
 public String apply(SUT s) {
   Assert.notNull(s);
   Widget w = finder.apply(s.get(Tags.SystemState));
   Object[] tagValues = new Object[tags.length];
   for (int i = 0; i < tags.length; i++) tagValues[i] = w.get(tags[i], null);
   return String.format(formatString, tagValues);
 }
コード例 #2
0
 public WidgetIterator(Widget start, Navigator navi) {
   Assert.notNull(start, navi);
   this.buffer = new LinkedList<Widget>();
   this.navi = navi;
   this.buffer.add(start);
   this.navi.run(this.buffer);
 }
コード例 #3
0
 public AbsolutePosition(Point point) {
   Assert.notNull(point);
   p = point;
 }
コード例 #4
0
 public DynWidgetDesc(Finder finder, String formatString, Tag<?>... tags) {
   Assert.notNull(formatString, finder, tags);
   this.formatString = formatString;
   this.finder = finder;
   this.tags = tags;
 }