org.junit.Assert.internalArrayEquals()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(10.8k)|赞(0)|评价(0)|浏览(191)

本文整理了Java中org.junit.Assert.internalArrayEquals()方法的一些代码示例,展示了Assert.internalArrayEquals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.internalArrayEquals()方法的具体详情如下:
包路径:org.junit.Assert
类名称:Assert
方法名:internalArrayEquals

Assert.internalArrayEquals介绍

[英]Asserts that two object arrays are equal. If they are not, an AssertionError is thrown with the given message. If expecteds and actuals are null, they are considered equal.
[中]断言两个对象数组相等。如果不是,则会抛出带有给定消息的AssertionError。如果expectedsactualsnull,则认为它们相等。

代码示例

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two byte arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds byte array with expected values.
 * @param actuals byte array with actual values
 */
public static void assertArrayEquals(String message, byte[] expecteds,
    byte[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two int arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds int array with expected values.
 * @param actuals int array with actual values
 */
public static void assertArrayEquals(String message, int[] expecteds,
    int[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two short arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds short array with expected values.
 * @param actuals short array with actual values
 */
public static void assertArrayEquals(String message, short[] expecteds,
    short[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two long arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds long array with expected values.
 * @param actuals long array with actual values
 */
public static void assertArrayEquals(String message, long[] expecteds,
    long[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two char arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds char array with expected values.
 * @param actuals char array with actual values
 */
public static void assertArrayEquals(String message, char[] expecteds,
    char[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: google/j2objc

/**
 * Asserts that two int arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds int array with expected values.
 * @param actuals int array with actual values
 */
public static void assertArrayEquals(String message, int[] expecteds,
    int[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: google/j2objc

/**
 * Asserts that two long arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds long array with expected values.
 * @param actuals long array with actual values
 */
public static void assertArrayEquals(String message, long[] expecteds,
    long[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: google/j2objc

/**
 * Asserts that two short arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds short array with expected values.
 * @param actuals short array with actual values
 */
public static void assertArrayEquals(String message, short[] expecteds,
    short[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: google/j2objc

/**
 * Asserts that two byte arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds byte array with expected values.
 * @param actuals byte array with actual values
 */
public static void assertArrayEquals(String message, byte[] expecteds,
    byte[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: google/j2objc

/**
 * Asserts that two char arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds char array with expected values.
 * @param actuals char array with actual values
 */
public static void assertArrayEquals(String message, char[] expecteds,
    char[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two boolean arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message. If
 * <code>expecteds</code> and <code>actuals</code> are <code>null</code>,
 * they are considered equal.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds boolean array with expected values.
 * @param actuals boolean array with expected values.
 */
public static void assertArrayEquals(String message, boolean[] expecteds,
    boolean[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: junit-team/junit4

/**
 * Asserts that two object arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message. If
 * <code>expecteds</code> and <code>actuals</code> are <code>null</code>,
 * they are considered equal.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds Object array or array of arrays (multi-dimensional array) with
 * expected values.
 * @param actuals Object array or array of arrays (multi-dimensional array) with
 * actual values
 */
public static void assertArrayEquals(String message, Object[] expecteds,
    Object[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: google/j2objc

/**
 * Asserts that two object arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message. If
 * <code>expecteds</code> and <code>actuals</code> are <code>null</code>,
 * they are considered equal.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds Object array or array of arrays (multi-dimensional array) with
 * expected values.
 * @param actuals Object array or array of arrays (multi-dimensional array) with
 * actual values
 */
public static void assertArrayEquals(String message, Object[] expecteds,
    Object[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Asserts that two short arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds short array with expected values.
 * @param actuals short array with actual values
 */
public static void assertArrayEquals(String message, short[] expecteds,
    short[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Asserts that two byte arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds byte array with expected values.
 * @param actuals byte array with actual values
 */
public static void assertArrayEquals(String message, byte[] expecteds,
    byte[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Asserts that two int arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds int array with expected values.
 * @param actuals int array with actual values
 */
public static void assertArrayEquals(String message, int[] expecteds,
    int[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Asserts that two char arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds char array with expected values.
 * @param actuals char array with actual values
 */
public static void assertArrayEquals(String message, char[] expecteds,
    char[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Asserts that two long arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds long array with expected values.
 * @param actuals long array with actual values
 */
public static void assertArrayEquals(String message, long[] expecteds,
    long[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Asserts that two object arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message. If
 * <code>expecteds</code> and <code>actuals</code> are <code>null</code>,
 * they are considered equal.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds Object array or array of arrays (multi-dimensional array) with
 * expected values.
 * @param actuals Object array or array of arrays (multi-dimensional array) with
 * actual values
 */
public static void assertArrayEquals(String message, Object[] expecteds,
    Object[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

代码示例来源:origin: com.oracle/truffle-tck

/**
 * Asserts that two int arrays are equal. If they are not, an
 * {@link AssertionError} is thrown with the given message.
 *
 * @param message the identifying message for the {@link AssertionError} (<code>null</code>
 * okay)
 * @param expecteds int array with expected values.
 * @param actuals int array with actual values
 */
public static void assertArrayEquals(String message, int[] expecteds,
    int[] actuals) throws ArrayComparisonFailure {
  internalArrayEquals(message, expecteds, actuals);
}

相关文章