Esempio n. 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);
 }
 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);
 }
Esempio n. 3
0
 public AbsolutePosition(Point point) {
   Assert.notNull(point);
   p = point;
 }
Esempio n. 4
0
 public DynWidgetDesc(Finder finder, String formatString, Tag<?>... tags) {
   Assert.notNull(formatString, finder, tags);
   this.formatString = formatString;
   this.finder = finder;
   this.tags = tags;
 }