Java Assert assertTwoParameters(Class clz, String method, double... args)

Here you can find the source of assertTwoParameters(Class clz, String method, double... args)

Description

assert Two Parameters

License

Open Source License

Declaration

public static void assertTwoParameters(Class clz, String method, double... args) 

Method Source Code

//package com.java2s;

public class Main {
    public static void assertTwoParameters(Class clz, String method, double... args) {
        if (args == null || args.length != 2)
            throw new IllegalArgumentException(clz.getName() + "." + method
                    + "(...) is only supported for two parameters (got " + args.length + ")");
    }/*  w ww. jav  a 2  s .co  m*/
}

Related

  1. assertStringNotEmpty(String str, String name)
  2. assertStringNotEmpty(String str, String name)
  3. assertStringNotEmpty(String string, String fieldName)
  4. assertTesting()
  5. assertThrows(Class exception, Runnable action)
  6. assertUnreachable()
  7. assertValid(int piece)
  8. assertValidBrowserType(int aBrowserType)
  9. assertValidColumnName(String name)