io.airlift.testing.Assertions.assertEqualsIgnoreCase()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(39)

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

Assertions.assertEqualsIgnoreCase介绍

暂无

代码示例

代码示例来源:origin: com.teradata.airlift/testing

public static void assertEqualsIgnoreCase(String actual, String expected)
{
  assertEqualsIgnoreCase(actual, expected, null);
}

代码示例来源:origin: airlift/airlift

public static void assertEqualsIgnoreCase(String actual, String expected)
{
  assertEqualsIgnoreCase(actual, expected, null);
}

代码示例来源:origin: io.airlift/testing

public static void assertEqualsIgnoreCase(String actual, String expected)
{
  assertEqualsIgnoreCase(actual, expected, null);
}

代码示例来源:origin: airlift/airlift

private void passEqualsIgnoreCase(String actual, String expected)
{
  assertEqualsIgnoreCase(actual, expected);
  assertEqualsIgnoreCase(expected, actual);
  assertEqualsIgnoreCase(actual, expected, MESSAGE);
  assertEqualsIgnoreCase(expected, actual, MESSAGE);
}

代码示例来源:origin: io.airlift/testing

private void passEqualsIgnoreCase(String actual, String expected)
{
  assertEqualsIgnoreCase(actual, expected);
  assertEqualsIgnoreCase(expected, actual);
  assertEqualsIgnoreCase(actual, expected, MESSAGE);
  assertEqualsIgnoreCase(expected, actual, MESSAGE);
}

代码示例来源:origin: com.teradata.airlift/testing

private void passEqualsIgnoreCase(String actual, String expected)
{
  Assertions.assertEqualsIgnoreCase(actual, expected);
  Assertions.assertEqualsIgnoreCase(expected, actual);
  Assertions.assertEqualsIgnoreCase(actual, expected, MESSAGE);
  Assertions.assertEqualsIgnoreCase(expected, actual, MESSAGE);
}

代码示例来源:origin: airlift/airlift

private static void assertHeaderOverridesMethod(String requestMethod, String override)
{
  String resultMethod = testHeader(requestMethod, override);
  assertEqualsIgnoreCase(resultMethod, override);
}

代码示例来源:origin: airlift/airlift

private static void assertQueryParamOverridesMethod(String requestMethod, String override)
{
  String resultMethod = testQueryParam(requestMethod, override);
  assertEqualsIgnoreCase(resultMethod, override);
}

代码示例来源:origin: airlift/airlift

private void failEqualsIgnoreCase(String actual, String expected)
{
  try {
    assertEqualsIgnoreCase(actual, expected);
    fail("Expected AssertionError");
  }
  catch (AssertionError e) {
    verifyExceptionMessage(e, null, actual, expected);
  }
  try {
    assertEqualsIgnoreCase(actual, expected, MESSAGE);
    fail("Expected AssertionError");
  }
  catch (AssertionError e) {
    // success
    verifyExceptionMessage(e, MESSAGE, actual, expected);
  }
}

代码示例来源:origin: com.teradata.airlift/testing

private void failEqualsIgnoreCase(String actual, String expected)
{
  try {
    Assertions.assertEqualsIgnoreCase(actual, expected);
    Assert.fail("Expected AssertionError");
  }
  catch (AssertionError e) {
    verifyExceptionMessage(e, null, actual, expected);
  }
  try {
    Assertions.assertEqualsIgnoreCase(actual, expected, MESSAGE);
    Assert.fail("Expected AssertionError");
  }
  catch (AssertionError e) {
    // success
    verifyExceptionMessage(e, MESSAGE, actual, expected);
  }
}

代码示例来源:origin: io.airlift/testing

private void failEqualsIgnoreCase(String actual, String expected)
{
  try {
    assertEqualsIgnoreCase(actual, expected);
    fail("Expected AssertionError");
  }
  catch (AssertionError e) {
    verifyExceptionMessage(e, null, actual, expected);
  }
  try {
    assertEqualsIgnoreCase(actual, expected, MESSAGE);
    fail("Expected AssertionError");
  }
  catch (AssertionError e) {
    // success
    verifyExceptionMessage(e, MESSAGE, actual, expected);
  }
}

代码示例来源:origin: airlift/airlift

@Test(dataProvider = "methods")
public void testRequestUnmodifiedWithNoOverride(String method)
{
  OverrideMethodFilter filter = new OverrideMethodFilter();
  ContainerRequest request = new ContainerRequest(
      URI.create("http://www.example.com/"),
      URI.create("http://www.example.com/"),
      method,
      new MockSecurityContext(),
      new MockPropertiesDelegate());
  filter.filter(request);
  assertEqualsIgnoreCase(request.getMethod(), method);
}

代码示例来源:origin: airlift/airlift

@Test
public void testHeaderHasPrecedenceOverQueryParam()
{
  OverrideMethodFilter filter = new OverrideMethodFilter();
  ContainerRequest request = new ContainerRequest(
      URI.create("http://www.example.com/"),
      URI.create("http://www.example.com/?_method=PUT"),
      "POST",
      new MockSecurityContext(),
      new MockPropertiesDelegate());
  request.header(OverrideMethodFilter.HEADER, "DELETE");
  filter.filter(request);
  assertEqualsIgnoreCase(request.getMethod(), "DELETE");
}

相关文章