public Iterable<XtendMember> allVisibleMembers(final Step step) {
   final Scenario scenario = EcoreUtil2.<Scenario>getContainerOfType(step, Scenario.class);
   boolean _equals = Objects.equal(scenario, null);
   if (_equals) {
     return CollectionLiterals.<XtendMember>emptyList();
   }
   EList<XtendMember> members = scenario.getMembers();
   if ((scenario instanceof Background)) {
     return members;
   }
   final Feature feature = EcoreUtil2.<Feature>getContainerOfType(scenario, Feature.class);
   Background _background = feature.getBackground();
   boolean _equals_1 = Objects.equal(_background, null);
   if (_equals_1) {
     return members;
   }
   Background _background_1 = feature.getBackground();
   EList<XtendMember> _members = _background_1.getMembers();
   return Iterables.<XtendMember>concat(members, _members);
 }
示例#2
0
 public String describe(final Feature feature) {
   String _name = feature.getName();
   String _makeJunitConform = Strings.makeJunitConform(_name);
   return _makeJunitConform;
 }