72 lines
1.6 KiB
Java
72 lines
1.6 KiB
Java
/*
|
|
* Created on Feb 9, 2005
|
|
*
|
|
* MNP [project sim]
|
|
* Copyright (c) 2005
|
|
*
|
|
* @author Giovanni Amici
|
|
* @version 1.0
|
|
*/
|
|
package tools;
|
|
|
|
import client.ClientAOMGenerator;
|
|
import client.ClientAOMSender;
|
|
|
|
|
|
|
|
|
|
/**
|
|
* @author Giovanni
|
|
*
|
|
* TODO To change the template for this generated type comment go to
|
|
* Window - Preferences - Java - Code Style - Code Templates
|
|
*/
|
|
public class TestCase {
|
|
|
|
public TestCase() {
|
|
|
|
}
|
|
|
|
public void test1() {
|
|
/* params.add(argv[1]); // numero di file XML da generare file: <=100
|
|
params.add(argv[2]); // numero di richieste per file: <=30
|
|
params.add(argv[3]); // Codice operatore Recipient: OPIV, WIND, H3GI, MISTO
|
|
params.add(argv[4]); // Contratto: PRP, POP, MISTO
|
|
params.add(argv[5]); // Codice operatore Donating: TIMG, TIMT, MISTO
|
|
params.add(argv[6]); // Codice Analogico Digitale: A, D, MISTO
|
|
params.add(argv[7]); // Indica se il file deve contenere richieste duplicate: DUP, NODUP
|
|
*/
|
|
String testId ="FK0101_STEP1";
|
|
|
|
//Azione
|
|
//Generazione file di attivazione
|
|
String args1[] = {testId, "1", "1", "3", "WIND", "PRP", "TIMG", "D", "NODUP"};
|
|
ClientAOMGenerator.main(args1);
|
|
|
|
|
|
//Send file di attivazione
|
|
String args2[] = {"1"};
|
|
ClientAOMSender.main(args2);
|
|
|
|
//Verifica -checkpoint
|
|
//Eventualmernte implementare uno sleep???
|
|
try {
|
|
|
|
Thread.sleep(5000);
|
|
} catch (InterruptedException e) {
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
}
|
|
|
|
//Verifica se c'e' in XML_IN il file inviato - serve il nome del file
|
|
|
|
|
|
//Verifica se c'e' in XML_OUT l'ack relativo al file inviato
|
|
}
|
|
|
|
public static void main(String args[]) {
|
|
|
|
}
|
|
|
|
}
|