Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. package testTextuel;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. import Modeles.BDHistorique;
  6. import control.ControlHistorique;
  7. import vue.BoundaryHistorique;
  8.  
  9. public class testHistorique {
  10.    
  11.     public static void main(String args[]) {
  12.  
  13.         ControlHistorique controlHistorique = new ControlHistorique();
  14.         BoundaryHistorique boundaryHistorique = new BoundaryHistorique(controlHistorique);
  15.        
  16.         System.out.println("Begin test");
  17.        
  18.         //Recherche 1
  19.         String requeteRecherche1 = "test";
  20.         ArrayList<String> resultatRecherche1 = new ArrayList<>();
  21.         resultatRecherche1.add("res1");
  22.         resultatRecherche1.add("res2");
  23.         resultatRecherche1.add("res3");
  24.        
  25.         //Recherche 2      
  26.         String requeteRecherche2 = "toto";
  27.         ArrayList<String> resultatRecherche2 = new ArrayList<>();
  28.         resultatRecherche2.addAll(resultatRecherche1);
  29.         resultatRecherche2.add("tata");
  30.        
  31.        
  32.         boundaryHistorique.ajouterHistorique(requeteRecherche1, resultatRecherche1);
  33.         boundaryHistorique.ajouterHistorique(requeteRecherche2, resultatRecherche2);
  34.        
  35.        
  36.        
  37.         System.out.println(controlHistorique);
  38.        
  39.         boundaryHistorique.consulterHistorique();
  40.        
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement