import org.junit.Test;
<BUG>import org.sonar.plsqlopen.AnalyzerMessage;
public class CharacterDatatypeUsageCheckTest extends BaseCheckTest {</BUG>
@Test
<BUG>public void test() {
Collection<AnalyzerMessage> messages = scanFile("character_datatype_usage.sql", new CharacterDatatypeUsageCheck());
AnalyzerMessagesVerifier.verify(messages)
.next().atLine(2).withMessage("Use VARCHAR2 instead of VARCHAR.")
.next().atLine(3).withMessage("Use VARCHAR2 instead of CHAR.")
.noMore();</BUG>
}

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