/xls-test

XLS Test

Primary LanguageJavaGNU Lesser General Public License v3.0LGPL-3.0

XLS Test

Excel testing library

How to use

import static com.codeborne.xlstest.XLSMatchers.containsText;
import static org.junit.Assert.assertThat;

public class ExcelContainsTextTest {
  @Test
  public void canAssertThatXlsContainsText() {
    XLS spreadsheet = new XLS (getClass().getClassLoader().getResource("statement.xls"));
    assertThat(spreadsheet, containsText("Statement"));
  }
}

How to start

If you use Maven, add the following dependency to pom.xml:

  <dependency>
    <groupId>com.codeborne</groupId>
    <artifactId>xls-test</artifactId>
    <version>1.0</version>
  </dependency>

If you use Gradle, add the following dependency to build.gradle:

  testCompile 'com.codeborne:xls-test:1.0'

How to contribute

You are welcome to suggest your features and fixes!

Just fork the xls-test and create pull request. Any contribution is important!

Become part of open-source community!