Package junit.framework

Examples of junit.framework.AssertionFailedError


            throw e;
         }
         @Override
         public A1 read(A2 output) throws Exception
         {
            throw new AssertionFailedError();
         }
      };
      SerializationContext context = new SerializationContext(domain);
      try
      {
View Full Code Here


            return null;
         }
         @Override
         public A1 read(A2 output) throws Exception
         {
            throw new AssertionFailedError();
         }
      };
      SerializationContext context = new SerializationContext(domain);
      try
      {
View Full Code Here

   @Override
   public A2 write(A1 input) throws Exception
   {
      if (delegate == null)
      {
         throw new AssertionFailedError();
      }
      return delegate.write(input);
   }
View Full Code Here

   @Override
   public A1 read(A2 output) throws Exception
   {
      if (delegate == null)
      {
         throw new AssertionFailedError();
      }
      return delegate.read(output);
   }
View Full Code Here

         ObjectInputStream ois = new ObjectInputStream(bais);
         return (StringPageListAccess)ois.readObject();
      }
      catch (Exception e)
      {
         AssertionFailedError afe = new AssertionFailedError();
         afe.initCause(e);
         throw afe;
      }
   }
View Full Code Here

         }

         // Report error as a junit assertion failure
         if (failure != null)
         {
            AssertionFailedError err = new AssertionFailedError();
            err.initCause(failure);
            throw err;
         }
      }
View Full Code Here

         }
         if (t instanceof RuntimeException)
         {
            throw ((RuntimeException)t);
         }
         throw new AssertionFailedError();
      }
View Full Code Here

  public static void assertDuration(double currentDuration,
      long referenceDuration, double referenceBIPS) throws AssertionFailedError {
    double ajustedDuration = adjustExpectedDuration(referenceDuration,
        referenceBIPS);
    if (currentDuration > ajustedDuration * SLACK_FACTOR) {
      throw new AssertionFailedError("current duration " + currentDuration
          + " exceeded expected " + ajustedDuration + " (adjusted reference), "
          + referenceDuration + " (raw reference)");
    }
  }
View Full Code Here

      long referencePerformance, double referenceBIPS)
      throws AssertionFailedError {
    double ajustedPerf = adjustExpectedPerformance(referencePerformance,
        referenceBIPS);
    if (currentPerformance * SLACK_FACTOR < ajustedPerf) {
      throw new AssertionFailedError(currentPerformance + " below expected "
          + ajustedPerf + " (adjusted), " + referencePerformance + " (raw)");
    }
  }
View Full Code Here

                        = "myrootproject:mysubproject1:mysubsubproject:lib";   //change the task's full name
                return true;
            }

            public void reportError(String error) {
                throw new AssertionFailedError("unexpected error: " + error);
            }
        });

        //make sure we were notified
        context.assertIsSatisfied();
View Full Code Here

TOP

Related Classes of junit.framework.AssertionFailedError

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.