230 likes | 341 Views
Design Office Genindexe 2009 – 2010. Emilie Arnault Charles Beauchamps Pauline Beyou. Outline. Introduction Genindexe Specifications UML Design Sequence diagrams Class diagram State diagram JAVA Code JUnit tests Conclusion. Introduction. Genindexe. Veterinarian laboratory
E N D
Design Office Genindexe2009 – 2010 Emilie Arnault Charles Beauchamps Pauline Beyou
Outline • Introduction • Genindexe • Specifications • UML Design • Sequencediagrams • Class diagram • State diagram • JAVA Code • JUnit tests • Conclusion
Genindexe • Veterinarianlaboratory • Genetic tests • Different types of customer • Vets • Farmers • Individuals • Design Office Design of their LIMS • 1st semester : functionalkernel • 2d semester : Database and HCI
Specifications • Analysis type management • User right management • Customer management • Order management • Billing • Analysis management • Resultsending • Storage management
UML Design Sequencediagrams
UML Design State diagram
Elaboratedmethods • Constructors : Order, Invoice • Order.editingInvoice • Calls the Invoiceconstructor • In Parameter • HashMap : <AnalysType, [Unit Price, Quantity]> • Analysis.checkAnalysis • PDF generation • Invoice • Results • Batchestrackingforms
Test planning Animal Type Address Internet Account User Details Animal Analysis Type Customer Analysis API-bdd Batch mock tests Order Invoice Global Report Batch TrackingForm
Test example: UserDetails.isAtLeastTest • Aim of the method : to determine if a user has at least the level right of the givenparameter
T : Technician V : Validator I : Interpreter VI : Validator & Interpreter TV : Technician & Validator U : Unauthorized isAtLeast (BioClearranceLvllevel) Boolres := true this.level = V or I or VI or U yes yes level = T Res := false no no this.level = T or I or U yes level = V yes Res := false no no this.level = T or V or TV or U yes yes level = I Res := false no no Return res Throws Exception end
Improvementsneeded • Storage Management • Administrative user right management • E-mail sending • Printing • One test left…