// Path: vilebot/src/main/java/com/oldterns/vilebot/handlers/user/TwitterCorrection.java
// public class TwitterCorrection
//     extends ListenerAdapter
// {
//     private static final Pattern twitterSyntaxUsePattern = Pattern.compile( "(?:^|\\s+)[@](\\S+)(?:\\s|:|)" );
// 
//     @Override
//     public void onGenericMessage( final GenericMessageEvent event )
//     {
//         String text = event.getMessage();
//         Matcher matcher = twitterSyntaxUsePattern.matcher( text );
// 
//         if ( matcher.find() )
//         {
//             String word = matcher.group( 1 );
// 
//             String sb = "You seem to be using twitter addressing syntax. On IRC you would say this instead: "
//                 + word.replaceAll( "[^A-Za-z0-9]$", "" ) + ": message";
//             event.respond( sb );
//         }
//     }
// }


import com.oldterns.vilebot.handlers.user.TwitterCorrection;
import org.junit.Before;
import org.junit.Test;
import org.pircbotx.hooks.events.MessageEvent;
import static org.mockito.Mockito.*;
package vilebot.handlers.user;



public class TwitterCorrectionTest
{

    private String correctResponse =
        "You seem to be using twitter addressing syntax. On IRC you would say this instead: ipun: message";

// Path: vilebot/src/main/java/com/oldterns/vilebot/handlers/user/TwitterCorrection.java
// public class TwitterCorrection
//     extends ListenerAdapter
// {
//     private static final Pattern twitterSyntaxUsePattern = Pattern.compile( "(?:^|\\s+)[@](\\S+)(?:\\s|:|)" );
// 
//     @Override
//     public void onGenericMessage( final GenericMessageEvent event )
//     {
//         String text = event.getMessage();
//         Matcher matcher = twitterSyntaxUsePattern.matcher( text );
// 
//         if ( matcher.find() )
//         {
//             String word = matcher.group( 1 );
// 
//             String sb = "You seem to be using twitter addressing syntax. On IRC you would say this instead: "
//                 + word.replaceAll( "[^A-Za-z0-9]$", "" ) + ": message";
//             event.respond( sb );
//         }
//     }
// }


// Path: vilebot/src/test/java/vilebot/handlers/user/TwitterCorrectionTest.java
import com.oldterns.vilebot.handlers.user.TwitterCorrection;
import org.junit.Before;
import org.junit.Test;
import org.pircbotx.hooks.events.MessageEvent;
import static org.mockito.Mockito.*;

package vilebot.handlers.user;



public class TwitterCorrectionTest
{

    private String correctResponse =
        "You seem to be using twitter addressing syntax. On IRC you would say this instead: ipun: message";

    private TwitterCorrection tester = new TwitterCorrection();