ajout test 6
This commit is contained in:
parent
45a93f086a
commit
0ac4091f4d
@ -1,9 +1,10 @@
|
|||||||
annotation.processing.enabled=true
|
annotation.processing.enabled=true
|
||||||
annotation.processing.enabled.in.editor=false
|
annotation.processing.enabled.in.editor=false
|
||||||
annotation.processing.processor.options=
|
|
||||||
annotation.processing.processors.list=
|
annotation.processing.processors.list=
|
||||||
annotation.processing.run.all.processors=true
|
annotation.processing.run.all.processors=true
|
||||||
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
||||||
|
application.title=MusicAndCo
|
||||||
|
application.vendor=ilona.cardot
|
||||||
build.classes.dir=${build.dir}/classes
|
build.classes.dir=${build.dir}/classes
|
||||||
build.classes.excludes=**/*.java,**/*.form
|
build.classes.excludes=**/*.java,**/*.form
|
||||||
# This directory is removed when the project is cleaned:
|
# This directory is removed when the project is cleaned:
|
||||||
@ -32,6 +33,7 @@ dist.jar=${dist.dir}/MusicAndCo.jar
|
|||||||
dist.javadoc.dir=${dist.dir}/javadoc
|
dist.javadoc.dir=${dist.dir}/javadoc
|
||||||
dist.jlink.dir=${dist.dir}/jlink
|
dist.jlink.dir=${dist.dir}/jlink
|
||||||
dist.jlink.output=${dist.jlink.dir}/MusicAndCo
|
dist.jlink.output=${dist.jlink.dir}/MusicAndCo
|
||||||
|
endorsed.classpath=
|
||||||
excludes=
|
excludes=
|
||||||
includes=**
|
includes=**
|
||||||
jar.compress=false
|
jar.compress=false
|
||||||
|
@ -67,8 +67,19 @@ public class CommandeTest {
|
|||||||
System.out.println("Cas4 : ajout nouvelle ligne avec quantité 0");
|
System.out.println("Cas4 : ajout nouvelle ligne avec quantité 0");
|
||||||
/*MORGANN*/
|
/*MORGANN*/
|
||||||
System.out.println("Cas5 : mise à 0 quantité commandée d'une ligne existante");
|
System.out.println("Cas5 : mise à 0 quantité commandée d'une ligne existante");
|
||||||
/*INES*/
|
|
||||||
|
/*ILONA*/
|
||||||
System.out.println("Cas6 : màj d'une ligne existante avec qté>stock");
|
System.out.println("Cas6 : màj d'une ligne existante avec qté>stock");
|
||||||
|
boolean resultatMethode = laCommande.ajouter(instr1, 12);
|
||||||
|
boolean resultatMethodeAttendu=false;
|
||||||
|
assertEquals("test6 mise à jour",resultatMethodeAttendu,resultatMethode);
|
||||||
|
stockRes=instr1.getQteStock();
|
||||||
|
stockAttendu=2;
|
||||||
|
assertEquals("test6 stock",stockAttendu,stockRes );
|
||||||
|
|
||||||
|
/*qteRes=laCommande.getLesLignes().get(instr1);
|
||||||
|
qteAttendu=4;
|
||||||
|
assertEquals("Test6 quantite", qteAttendu,qteRes);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user