コード例 #1
0
 @Override
 public void removeChild(TestDescriptor child) {
   Preconditions.condition(
       child instanceof EngineAwareTestDescriptor,
       "TestDescriptors that are added to the root need to be aware of their engines");
   testEngines.remove(((EngineAwareTestDescriptor) child).getEngine());
   super.removeChild(child);
 }
コード例 #2
0
 @Override
 public void addChild(TestDescriptor child) {
   Preconditions.notNull(child, "child must not be null");
   child.setParent(this);
   this.children.add(child);
 }
コード例 #3
0
 protected final void setSource(TestSource source) {
   this.source = Preconditions.notNull(source, "TestSource must not be null");
 }
コード例 #4
0
 protected AbstractTestDescriptor(String uniqueId) {
   this.uniqueId = Preconditions.notBlank(uniqueId, "uniqueId must not be null or empty");
 }