/**
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *
 * Copyright 2012-2014 the original author or authors.
 */
package org.assertj.db.type;

import static org.assertj.core.api.Assertions.assertThat;

import org.assertj.db.common.AbstractTest;
import org.junit.Test;

/**
 * Tests on the list of changes.
 * 
 * @author Régis Pouiller.
 * 
 */
public class Changes_GetChangesList_Test extends AbstractTest {

  /**
   * This method test when there is not change.
   */
  @Test
  public void test_when_there_is_no_change() {
    Changes changes = new Changes(source);
    changes.setStartPointNow();
    changes.setEndPointNow();
    assertThat(changes.getChangesList()).hasSize(0);
  }
}

@@ -174,17 +174,18 @@
 se at%0A *
+ 
 %0A
-
  * http:
@@ -224,16 +224,17 @@
 E-2.0%0A *
+ 
 %0A * Unle
@@ -543,16 +543,17 @@
 ense.%0A *
+ 
 %0A * Copy
@@ -693,16 +693,70 @@
 tThat;%0A%0A
+import java.sql.SQLException;%0Aimport java.util.List;%0A%0A
 import o
@@ -1171,24 +1171,24 @@
 PointNow();%0A
-
     assertTh
@@ -1231,11 +1231,846 @@
 (0);%0A  %7D
+%0A%0A  /**%0A   * This method test when there is a deletion change.%0A   * %0A   * @throws SQLException%0A   */%0A  @Test%0A  public void test_when_there_is_deletion_change() throws SQLException %7B%0A    Changes changes = new Changes(source);%0A    changes.setStartPointNow();%0A    update(%22delete from test2 where var1 is null%22);%0A    changes.setEndPointNow();%0A%0A    List%3CChange%3E changesList = changes.getChangesList();%0A    assertThat(changesList).hasSize(1);%0A    Change change = changesList.get(0);%0A    assertThat(change.getDataName()).isEqualTo(%22TEST2%22);%0A    assertThat(change.getChangeType()).isEqualTo(ChangeType.DELETION);%0A    assertThat(change.getRowAtStartPoint().getValuesList()).containsExactly(null, null, null, null, null, null, null,%0A        null, null, null, null, null, null, null, null);%0A    assertThat(change.getRowAtEndPoint()).isNull();%0A  %7D
 %0A%7D%0A

Improve test coverage