Examples of EmptyDescription


Examples of org.junit.internal.runners.EmptyDescription

  @Test(expected=InitializationError.class)
  public void testClassRunnerHandlesBeforeClassAndAfterClassValidation() throws InitializationError {
    new TestClassRunner(WrongBeforeClass.class, new Runner() {
      @Override
      public Description getDescription() {
        return new EmptyDescription();
      }

      @Override
      public void run(RunNotifier notifier) {
        // do nothing
View Full Code Here

Examples of org.junit.internal.runners.EmptyDescription

      public UnsortableRunner(Class<?> klass) {
      }
     
      @Override
      public Description getDescription() {
        return new EmptyDescription();
      }
View Full Code Here

Examples of org.junit.internal.runners.EmptyDescription

      throw new Exception(UNIQUE_ERROR_MESSAGE);
    }

    @Override
    public Description getDescription() {
      return new EmptyDescription();
    }
View Full Code Here

Examples of org.junit.internal.runners.EmptyDescription

      return 0;
    }

    @Override
    public Description getDescription() {
      return new EmptyDescription();
    }
View Full Code Here

Examples of org.w3c.tools.resources.serialization.EmptyDescription

      // Prepare the request:
      req.setMethod("UNREGISTER-FRAME");
      req.setContentType(admin.conftype);
      req.setURL(url);

      ResourceDescription dframe = new EmptyDescription("", id);
      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      OutputStream out;
      if (debug) {
    out = bout;
      } else {
View Full Code Here

Examples of org.w3c.tools.resources.serialization.EmptyDescription

      Request req = createRequest();
      // Prepare the request:
      req.setMethod("REGISTER-FRAME");
      req.setContentType(admin.conftype);

      ResourceDescription dframe = new EmptyDescription(classname, id);
      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      OutputStream out;
      if (debug) {
    out = bout;
      } else {
    out = new GZIPOutputStream(bout);
      }
      admin.writer.writeResourceDescription(dframe, out);
      byte bits[] = bout.toByteArray();
      req.setContentLength(bits.length);
      if (!debug) {
    req.addTransferEncoding("gzip");
      }
      req.setOutputStream(new ByteArrayInputStream(bits));

      // Run it:
      Reply rep = admin.runRequest(req);
      dframe =
    admin.reader.readResourceDescription(getInputStream(rep));
      id = dframe.getIdentifier();
      URL url = null;
      if (isFrame()) {
    url = new URL(this.url, this.url.getFile()+"?" + id);
      } else {
    url = new URL(parent.toString() +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.