Example usage for java.lang AssertionError AssertionError

List of usage examples for java.lang AssertionError AssertionError

Introduction

In this page you can find the example usage for java.lang AssertionError AssertionError.

Prototype

public AssertionError() 

Source Link

Document

Constructs an AssertionError with no detail message.

Usage

From source file:org.glowroot.agent.plugin.httpclient.FutureCallbackWrapper.java

private static RuntimeException rethrow(Throwable t) {
    FutureCallbackWrapper.<RuntimeException>throwsUnchecked(t);
    throw new AssertionError();
}

From source file:com.xtructure.xutil.valid.strategy.UTestTestValidationStrategy.java

public void constructorSucceeds() {
    if (new TestValidationStrategy<Object>(Arrays.asList(isNotNull(), isTrue())) == null) {
        throw new AssertionError();
    }/*from   w w w .  j a  v  a  2  s.c  o  m*/
    if (new TestValidationStrategy<Object>(isNotNull(), isTrue()) == null) {
        throw new AssertionError();
    }
}

From source file:com.xtructure.xutil.valid.strategy.UTestStateValidationStrategy.java

public void constructorSucceeds() {
    if (new StateValidationStrategy<Object>(Arrays.asList(isNotNull(), isTrue())) == null) {
        throw new AssertionError();
    }//from w ww  .  j  a va  2 s .c  o m
    if (new StateValidationStrategy<Object>(isNotNull(), isTrue()) == null) {
        throw new AssertionError();
    }
}

From source file:br.unesp.rc.desafio.utils.Spreadsheet.java

private Spreadsheet() {
    throw new AssertionError();
}

From source file:com.xtructure.xutil.valid.strategy.UTestArgumentValidationStrategy.java

public void constructorSucceeds() {
    if (new ArgumentValidationStrategy<Object>(Arrays.asList(isNotNull(), isTrue())) == null) {
        throw new AssertionError();
    }//from w w  w  .jav a  2s . c  o  m
    if (new ArgumentValidationStrategy<Object>(isNotNull(), isTrue()) == null) {
        throw new AssertionError();
    }
}

From source file:ninja.siden.internal.Testing.java

static HttpHandler empty() {
    return exc -> {
        throw new AssertionError();
    };
}

From source file:com.cloudbees.mtslaves.client.ServerExceptionTest.java

@Test
public void stackTraces() throws Exception {
    Exception x1;//from  w w w .j  a  v  a  2s. co  m
    try {
        serverside();
        throw new AssertionError();
    } catch (Exception _x) {
        x1 = _x;
    }
    Exception x2;
    try {
        clientside(x1);
        throw new AssertionError();
    } catch (Exception _x) {
        x2 = _x;
    }
    StringWriter w = new StringWriter();
    x2.printStackTrace(new PrintWriter(w));
    assertEquals(IOUtils.toString(ServerExceptionTest.class.getResource("expectedStackTrace.txt"), "UTF-8"),
            w.toString().replace(ServerExceptionTest.class.getName(), "SET")
                    .replace(ServerException.class.getName(), "SE")
                    .replaceAll("[.][.][.] \\d+ more", "...  more")
                    .replaceAll("[(]ServerExceptionTest.java:\\d+[)]", "")
                    .replaceAll("((\n\tat SET[.].+)+)(\n\tat .+)*", "$1\n\tat "));
}

From source file:mx.uaq.facturacion.enlace.EmailParserUtils.java

/** Prevent instantiation. */
private EmailParserUtils() {
    throw new AssertionError();
}

From source file:com.prowidesoftware.deprecation.DeprecationUtils.java

private DeprecationUtils() {
    throw new AssertionError();
}

From source file:com.alexshabanov.springrestapi.support.ProfileController.java

@RequestMapping(COMPLETE_PROFILE_RESOURCE)
@ResponseBody/* ww w  . ja  v a2 s  .c om*/
public Profile getProfile(@PathVariable("id") int id, @PathVariable("name") String name) {
    throw new AssertionError(); // should be mocked
}