Package fr.univ.jfc.java.grp7.test

Examples of fr.univ.jfc.java.grp7.test.Test


   *            args
   * @throws SQLException
   *             SQLException
   */
  public static void main(final String[] args) throws SQLException {
    FenetreServeur fen = new FenetreServeur();
    fen.setVisible(true);
  }
View Full Code Here


   */
  public static void main(final String[] args) throws SQLException {
    String strClassPath = System.getProperty("java.class.path");
    System.out.println("Classpath is " + strClassPath);
   
    FenetreServeur fen = new FenetreServeur();
    fen.setVisible(true);
  }
View Full Code Here

  public static void main(String[] args) throws RemoteException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
       System.out.println(myUser.getProprioNomPrenom(3));
      // myUser.addNote(myNote);            //OK
View Full Code Here

  public static void main(String[] args) throws RemoteException, ClassNotFoundException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
       System.out.println(myUser.getProprioNomPrenom(3));
      // myUser.addNote(myNote);            //OK
View Full Code Here

      conn = Connect.getInstance(field_url.getText(),field_user.getText(),field_mdp.getText());
     
      // Cr�ation du registre
      reg = java.rmi.registry.LocateRegistry.createRegistry(1099);
      // Cr�ation de l'objet Serveur.
      UserImpl user = new UserImpl(0, "",conn);
      // Enregistrement de l'objet dans le registre
      Naming.rebind("rmi://localhost:1099/User0", user);

      System.out.println("Serveur lanc�");
    } catch (Exception e) {
View Full Code Here

 
  ///* Classe de test en interne sur eclipse */
  public static void main(String[] args) throws RemoteException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
View Full Code Here

      conn = Connect.getInstance(field_url.getText(),field_user.getText(),field_mdp.getText());
     
      // Cr�ation du registre
      reg = java.rmi.registry.LocateRegistry.createRegistry(1099);
      // Cr�ation de l'objet Serveur.
      UserImpl user = new UserImpl(0, "",conn);
      // Enregistrement de l'objet dans le registre
      Naming.rebind("rmi://localhost:1099/User", user);

      System.out.println("Serveur lanc�");
    } catch (Exception e) {
View Full Code Here

 
  ///* Classe de test en interne sur eclipse */
  public static void main(String[] args) throws RemoteException, ClassNotFoundException
    try {
      final Connection conn = Connect.getInstance("jdbc:postgresql://localhost:5432/postgres", "postgres", "bonjoure");
      final UserImpl myUser = new UserImpl(3"", "a", "",conn);
      final UserImpl myUser2 = new UserImpl(4, "Julia", "a", "Xavier",conn);
      final NoteImpl myNote = new NoteImpl(1,"note test pe","je suis le chef",3);     
      final NoteImpl myNote2 = new NoteImpl(3,"ou�","ok",3);
     
      //final DroitImpl myDroit = new DroitImpl(1,777);
       myUser.Connection();              //OK
View Full Code Here

   * @param args
   */
  public static void main(String[] args)
  {
   
    Test test = new Test();
    test.genericInput("generic", new Date());
 
//    Can't be compiled because treated as List<Object> - nowhere to retrieve type parameter:
//    inputList(test.genericReturn("test"));
   
//    Generic type is retrieved from returned parameter List<String> list 
    List<String> list = test.genericReturn("test");
    inputList(list);
  }
View Full Code Here

TOP

Related Classes of fr.univ.jfc.java.grp7.test.Test

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.