Package org.junit.runner

Examples of org.junit.runner.Describable


            }
            return new DefaultTestDescriptor(id, className, methodName);
        }
        // JUnit4TestCaseFacade is-a Describable in junit 4.7+
        if (test instanceof Describable) {
            Describable describable = (Describable) test;
            Description description = describable.getDescription();
            return new DefaultTestDescriptor(id, description.getClassName(), description.getMethodName());
        }
        return super.convert(id, test);
    }
View Full Code Here


                Description made = makeDescription(ts.testAt(i));
                description.addChild(made);
            }
            return description;
        } else if (test instanceof Describable) {
            Describable adapter = (Describable) test;
            return adapter.getDescription();
        } else if (test instanceof TestDecorator) {
            TestDecorator decorator = (TestDecorator) test;
            return makeDescription(decorator.getTest());
        } else {
            // This is the best we can do in this case
View Full Code Here

            notifier.fireTestFailure(failure);
        }

        private Description asDescription(Test test) {
            if (test instanceof Describable) {
                Describable facade = (Describable) test;
                return facade.getDescription();
            }
            return Description.createTestDescription(getEffectiveClass(test), getName(test));
        }
View Full Code Here

        private Description asDescription(junit.framework.Test test)
        {
            if (test instanceof Describable)
            {
                Describable facade = (Describable) test;
                return facade.getDescription();
            }
            return Description.createTestDescription(getEffectiveClass(test), getName(test));
        }
View Full Code Here

        Description made= makeDescription(ts.testAt(i));
        description.addChild(made);
      }
      return description;
    } else if (test instanceof Describable) {
      Describable adapter= (Describable) test;
      return adapter.getDescription();
    } else if (test instanceof TestDecorator) {
      TestDecorator decorator= (TestDecorator) test;
      return makeDescription(decorator.getTest());
    } else {
      // This is the best we can do in this case
View Full Code Here

      fNotifier.fireTestFailure(failure);
    }

    private Description asDescription(Test test) {
      if (test instanceof Describable) {
        Describable facade= (Describable) test;
        return facade.getDescription();
      }
      return Description.createTestDescription(getEffectiveClass(test), getName(test));
    }
View Full Code Here

      int n= ts.testCount();
      for (int i= 0; i < n; i++)
        description.addChild(makeDescription(ts.testAt(i)));
      return description;
    } else if (test instanceof Describable) {
      Describable adapter= (Describable) test;
      return adapter.getDescription();
    } else if (test instanceof TestDecorator) {
      TestDecorator decorator= (TestDecorator) test;
      return makeDescription(decorator.getTest());
    } else {
      // This is the best we can do in this case
View Full Code Here

      fNotifier.fireTestFailure(failure);
    }

    private Description asDescription(Test test) {
      if (test instanceof Describable) {
        Describable facade= (Describable) test;
        return facade.getDescription();
      }
      return Description.createTestDescription(test.getClass(), getName(test));
    }
View Full Code Here

                Description made = makeDescription(ts.testAt(i));
                description.addChild(made);
            }
            return description;
        } else if (test instanceof Describable) {
            Describable adapter = (Describable) test;
            return adapter.getDescription();
        } else if (test instanceof TestDecorator) {
            TestDecorator decorator = (TestDecorator) test;
            return makeDescription(decorator.getTest());
        } else {
            // This is the best we can do in this case
View Full Code Here

            fNotifier.fireTestFailure(failure);
        }

        private Description asDescription(Test test) {
            if (test instanceof Describable) {
                Describable facade = (Describable) test;
                return facade.getDescription();
            }
            return Description.createTestDescription(getEffectiveClass(test), getName(test));
        }
View Full Code Here

TOP

Related Classes of org.junit.runner.Describable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.