import org.junit.Test;
<BUG>import org.sonar.plsqlopen.AnalyzerMessage;
public class CollapsibleIfStatementsCheckTest extends BaseCheckTest {</BUG>
@Test
<BUG>public void test() {
Collection<AnalyzerMessage> messages = scanFile("collapsible_if_statements.sql", new CollapsibleIfStatementsCheck());
String message = "Merge this if statement with the enclosing one.";
AnalyzerMessagesVerifier.verify(messages)
.next().atLine(4).withMessage(message)
.next().atLine(10).withMessage(message)
.next().atLine(11).withMessage(message)
.noMore();</BUG>
}

import org.junit.Test;
import org.sonar.plsqlopen.checks.verifier.PlSqlCheckVerifier;
public class CollapsibleIfStatementsCheckTest extends BaseCheckTest {
@Test
public void test() {
PlSqlCheckVerifier.verify(getPath("collapsible_if_statements.sql"), new CollapsibleIfStatementsCheck());
