Java Assert assertColor(int color)

Here you can find the source of assertColor(int color)

Description

assert Color

License

Open Source License

Declaration

public static void assertColor(int color) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void assertColor(int color) {
        if (color < 0 || color > 255) {
            throw new IllegalArgumentException("Color outside of range 0 - 255");
        }// w w  w .  j  a v  a  2 s.com
    }
}

Related

  1. assertByThrowing(boolean condition, String errorMessage)
  2. assertCharactersNotInString(final String illegalChars, final char... chars)
  3. assertCheckStrAndQuery(String str, String query)
  4. assertClassDoesNotExist(String className)
  5. assertClassExists(String className)
  6. assertComparison(T actual, T expected)
  7. assertComparison(T actual, T expected)
  8. assertCond(boolean b)
  9. assertCondition(boolean condition, String message)