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:com.github.caldav4j.support.HttpMethodCallbacks.java

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

From source file:com.xtructure.xutil.valid.comp.UTestAbstractComparisonCondition.java

License:asdf

public void isSatisfiedByBehavesAsExpected() {
    boolean valid = RandomUtil.nextBoolean();
    String value = RandomStringUtils.randomAlphanumeric(10);
    String object = RandomStringUtils.randomAlphanumeric(10);
    DummyComparisonCondition predicate = new DummyComparisonCondition(value);
    predicate.setrVal(valid);//w ww  .jav  a2  s  .com
    if (valid != predicate.isSatisfiedBy(object) || predicate.getCall() != 1
            || !predicate.getLast().equals(object)) {
        throw new AssertionError();
    }
    if (predicate.isSatisfiedBy(new Object())) {
        throw new AssertionError();
    }
}

From source file:moefou4j.internal.util.Moefou4JInternalParseUtil.java

private Moefou4JInternalParseUtil() {
    // should never be instantiated
    throw new AssertionError();
}

From source file:com.jhr.jarvis.table.TableRenderer.java

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

From source file:com.yattatech.util.SeminaryUtil.java

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

From source file:es.bsc.demiurge.core.utils.HttpUtils.java

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

From source file:se.backede.jeconomix.forms.budget.BudgetOutcomePanel.java

public void init(final CategoryTypeEnum category, final YearMonth budgetMonth) {
    BudgetOutcomeModel model = new BudgetOutcomeModel(category, budgetMonth);
    valueTable.setModel(model);//from   w ww . j  a  va2  s.  c  o m
    setChart(chartPanel, model, category);

    switch (category) {
    case INCOME:
        totalLabel.setText(model.getTotalOutcomeSum().abs().subtract(model.getTotalBudgetSum()).toPlainString()
                .concat(" Kr"));
        break;
    case EXPENSE:
    case BILL:
    case TRANSFER:
        totalLabel.setText(model.getTotalBudgetSum().subtract(model.getTotalOutcomeSum().abs()).toPlainString()
                .concat(" Kr"));
        break;
    default:
        throw new AssertionError();
    }

}

From source file:com.github.caldav4j.support.HttpClientTestUtils.java

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

From source file:org.n52.sos.service.it.MockHttpResponse.java

@Override
public XmlObject asXmlObject() {
    try {/*from   ww w.j  a v a  2  s .com*/
        return XmlObject.Factory.parse(getContentAsString());
    } catch (XmlException ex) {
        throw new AssertionError();
    } catch (UnsupportedEncodingException ex) {
        throw new AssertionError();
    }
}

From source file:com.minlia.cloud.framework.common.security.SpringSecurityUtil.java

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