Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. import it.italiaonline.rnd.filters.TextFilter;
  2.  
  3. /**
  4. * This class includes simple test cases for the SmartCap filter
  5. * <p>
  6. * A couple of arrays are defined with input / expected_output and a for loop
  7. * to couple them checking against the SmartCap filter.
  8. * @author Giuseppe Ricupero
  9. * @date 27/06/16 09.12
  10. */
  11. public class Launcher {
  12. public static void main(String[] args) {
  13.  
  14. String[] input = {
  15. "AZALEA S.A.S. DI AZZALE FRANCO E PIETRO & C.",
  16. "STUDIO DENTISTICO IACONO DOTT.SSA LIVIA",
  17. "NUOVA CARROZZERIA F.LLI MASCHIO DI MASCHIO MASSIMO & C. SNC"
  18. };
  19. String[] output = {
  20. "Azalea S.a.s. di Azzale Franco e Pietro & C.",
  21. "Studio Dentistico Iacono Dott.ssa Livia",
  22. "Nuova Carrozzeria F.lli Maschio di Maschio Massimo & C. Snc"
  23. };
  24.  
  25. for (int i=0; i<input.length; i++) {
  26. assert output[i].equals(
  27. new TextFilter.SmartCap(input[i]).result()
  28. );
  29. }
  30.  
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement