Example usage for junit.framework Assert assertFalse

List of usage examples for junit.framework Assert assertFalse

Introduction

In this page you can find the example usage for junit.framework Assert assertFalse.

Prototype

static public void assertFalse(String message, boolean condition) 

Source Link

Document

Asserts that a condition is false.

Usage

From source file:no.abmu.common.excel.ExcelParserTest.java

public void testHasColumn() {
    excelParser1.load();//  w  w w.ja  v  a 2 s  .  c o  m

    boolean hasColumn1 = excelParser1.hasColumn("ACCOUNTNAME");
    Assert.assertTrue("We expect that the excel file has columnName='ACCOUNTNAME'", hasColumn1);

    boolean hasColumn2 = excelParser1.hasColumn("WRONG WRONG XXX");
    Assert.assertFalse("We do not expect that the excel file has columnName='WRONG WRONG XXX'", hasColumn2);
}