Upload
destiny-mcgowan
View
25
Download
0
Tags:
Embed Size (px)
DESCRIPTION
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 - PowerPoint PPT Presentation
Citation preview
1
Design Office Genindexe2009 – 2010
Emilie ArnaultCharles Beauchamps
Pauline Beyou
2
Outline Introduction
› Genindexe› Specifications
UML Design› Sequence diagrams› Class diagram› State diagram
JAVA Code
JUnit tests
Conclusion
3Introduction
4
Genindexe
Veterinarian laboratory Genetic tests Different types of customer
› Vets› Farmers› Individuals
Design Office Design of their LIMS› 1st semester : functional kernel› 2d semester : Database and HCI
5
Specifications
Analysis type management User right management Customer management Order management Billing Analysis management Result sending Storage management
6UML Design
Sequence diagrams
7
OR
DER
CR
EATIO
N
8
AN
ALY
SIS
AN
D O
RD
ER
MA
NA
GEM
EN
T
(EN
D A
NA
LYSIS
CH
EC
KIN
G)
9
CLA
SS
DIA
GR
AM
10
11UML Design
State diagram
12
STA
TE D
IAG
RA
M O
F AN
ALY
SIS
13JAVA Code
14
Elaborated methods
Constructors : Order, Invoice Order.editingInvoice
› Calls the Invoice constructor › In Parameter
HashMap : <AnalysType, [Unit Price, Quantity]> Analysis.checkAnalysis PDF generation
› Invoice› Results› Batches tracking forms
15JUnit Tests
16
Test planning
Animal Type Address Internet Account
Animal Analysis Type Customer
Analysis
Batch
Order
Batch Tracking FormGlobal ReportInvoice
User Details
API-bdd
mock tests
17
PD
F EX
AM
PLE
S
18
PD
F EX
AM
PLE
S
19
Test example : UserDetails.isAtLeastTest
Aim of the method : to determine if a user has at least the level right of the given parameter
20
T : TechnicianV : ValidatorI : Interpreter
isAtLeast (BioClearranceLvl level)
Bool res := true
level = T
this.level = V or I or
VI or URes := false
Return res
end
level = V
this.level = T or I or
URes := false
level = I
this.level = T or V or TV or U
Res := false
Throws Exception
no
yes
yes
yes
yes
yes
yes
no
no
no
no
no
VI : Validator & InterpreterTV : Technician & ValidatorU : Unauthorized
21Conclusion
22
Improvements needed
Storage Management Administrative user right management E-mail sending Printing
One test left…
23
Thank you for attention