@@ -0,0 +1,2037 @@
+package org.assertj.db.api.assertions.impl;%0A%0Aimport org.assertj.core.api.Assertions;%0Aimport org.assertj.core.api.WritableAssertionInfo;%0Aimport org.assertj.db.api.TableAssert;%0Aimport org.assertj.db.type.Table;%0Aimport org.junit.Test;%0A%0Aimport static org.assertj.db.api.Assertions.assertThat;%0Aimport static org.junit.Assert.fail;%0A%0A/**%0A * Tests on %7B@link AssertionsOnNumberOfColumns%7D class :%0A * %7B@link AssertionsOnNumberOfColumns#hasNumberOfColumns(org.assertj.db.api.AbstractAssert, org.assertj.core.api.WritableAssertionInfo, int, int)%7D method.%0A *%0A * @author R%C3%A9gis Pouiller%0A *%0A */%0Apublic class AssertionsOnNumberOfColumns_HasNumberOfColumns_Test %7B%0A%0A  /**%0A   * This method tests the %7B@code hasNumberOfColumns%7D assertion method.%0A   */%0A  @Test%0A  public void test_has_number_of_columns() throws Exception %7B%0A    WritableAssertionInfo info = new WritableAssertionInfo();%0A    Table table = new Table();%0A    TableAssert tableAssert = assertThat(table);%0A    TableAssert tableAssert2 = AssertionsOnNumberOfColumns.hasNumberOfColumns(tableAssert, info, 3, 3);%0A    Assertions.assertThat(tableAssert2).isSameAs(tableAssert);%0A  %7D%0A%0A  /**%0A   * This method should fail because the number of columns is different.%0A   */%0A  @Test%0A  public void should_fail_because_number_of_columns_is_different() throws Exception %7B%0A    WritableAssertionInfo info = new WritableAssertionInfo();%0A    info.description(%22description%22);%0A    Table table = new Table();%0A    TableAssert tableAssert = assertThat(table);%0A    try %7B%0A      AssertionsOnNumberOfColumns.hasNumberOfColumns(tableAssert, info, 3, 4);%0A      fail(%22An exception must be raised%22);%0A    %7D catch (AssertionError e) %7B%0A      Assertions.assertThat(e.getMessage()).isEqualTo(%22%5Bdescription%5D %5Cn%22%0A                                                      + %22Expecting size (number of columns) to be equal to :%5Cn%22%0A                                                      + %22   %3C4%3E%5Cn%22%0A                                                      + %22but was:%5Cn%22%0A                                                      + %22   %3C3%3E%22);%0A    %7D%0A  %7D%0A%7D%0A

Add tests on AssertionsOnNumberOfColumns