From 492eb9cc39e52634f4f6f7d5aef489c08a9cb03f Mon Sep 17 00:00:00 2001 From: ismail Date: Fri, 15 Mar 2013 10:27:49 +0100 Subject: [PATCH] #1 --- pom.xml | 25 ++++++++ src/main/java/dcll/projetIAWS/App.java | 13 +++++ .../java/inscription/InscriptionImpl.java | 27 +++++++++ .../inscription/InscriptionInterface.java | 6 ++ src/main/java/inscription/package-info.java | 8 +++ src/main/java/personnel/Personnel.java | 55 ++++++++++++++++++ src/test/java/dcll/projetIAWS/AppTest.java | 38 ++++++++++++ target/classes/META-INF/MANIFEST.MF | 5 ++ .../maven/dcll/projetIAWS/pom.properties | 7 +++ .../META-INF/maven/dcll/projetIAWS/pom.xml | 25 ++++++++ target/classes/dcll/projetIAWS/App.class | Bin 0 -> 545 bytes .../classes/inscription/InscriptionImpl.class | Bin 0 -> 1286 bytes .../inscription/InscriptionInterface.class | Bin 0 -> 243 bytes target/classes/inscription/package-info.class | Bin 0 -> 117 bytes target/classes/personnel/Personnel.class | Bin 0 -> 1089 bytes .../dcll/projetIAWS/AppTest.class | Bin 0 -> 617 bytes 16 files changed, 209 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/dcll/projetIAWS/App.java create mode 100644 src/main/java/inscription/InscriptionImpl.java create mode 100644 src/main/java/inscription/InscriptionInterface.java create mode 100644 src/main/java/inscription/package-info.java create mode 100644 src/main/java/personnel/Personnel.java create mode 100644 src/test/java/dcll/projetIAWS/AppTest.java create mode 100644 target/classes/META-INF/MANIFEST.MF create mode 100644 target/classes/META-INF/maven/dcll/projetIAWS/pom.properties create mode 100644 target/classes/META-INF/maven/dcll/projetIAWS/pom.xml create mode 100644 target/classes/dcll/projetIAWS/App.class create mode 100644 target/classes/inscription/InscriptionImpl.class create mode 100644 target/classes/inscription/InscriptionInterface.class create mode 100644 target/classes/inscription/package-info.class create mode 100644 target/classes/personnel/Personnel.class create mode 100644 target/test-classes/dcll/projetIAWS/AppTest.class diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..45d7153 --- /dev/null +++ b/pom.xml @@ -0,0 +1,25 @@ + + 4.0.0 + + dcll + projetIAWS + 0.0.1-SNAPSHOT + jar + + projetIAWS + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + 3.8.1 + test + + + diff --git a/src/main/java/dcll/projetIAWS/App.java b/src/main/java/dcll/projetIAWS/App.java new file mode 100644 index 0000000..a7bb348 --- /dev/null +++ b/src/main/java/dcll/projetIAWS/App.java @@ -0,0 +1,13 @@ +package dcll.projetIAWS; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/main/java/inscription/InscriptionImpl.java b/src/main/java/inscription/InscriptionImpl.java new file mode 100644 index 0000000..3e2b482 --- /dev/null +++ b/src/main/java/inscription/InscriptionImpl.java @@ -0,0 +1,27 @@ +package inscription; + +public class InscriptionImpl implements InscriptionInterface{ + + public int verificationPersonnel(String nom, String prenom, String mail, + String adrPostale) { + + //vérification du mail + if(mail.contains("@") && mail.substring(mail.lastIndexOf('@') + 1).equals("univ-tlse3.fr")) { + return 110; + } + + return 0; + } + + // + + + public static void main(String args[]) { + InscriptionImpl i = new InscriptionImpl(); + System.out.println(i.verificationPersonnel("", "", "test@univ-tlse3.fr", "")); + System.out.println(i.verificationPersonnel("", "", "testuniv-tlse3.fr", "")); + System.out.println(i.verificationPersonnel("", "", "univ-tlse3.fr", "")); + System.out.println(i.verificationPersonnel("", "", "test@univ-tle3.fr", "")); + } + +} diff --git a/src/main/java/inscription/InscriptionInterface.java b/src/main/java/inscription/InscriptionInterface.java new file mode 100644 index 0000000..f2710b3 --- /dev/null +++ b/src/main/java/inscription/InscriptionInterface.java @@ -0,0 +1,6 @@ +package inscription; + +public interface InscriptionInterface { + public int verificationPersonnel(String nom, String prenom, String mail, String adrPostale); + +} diff --git a/src/main/java/inscription/package-info.java b/src/main/java/inscription/package-info.java new file mode 100644 index 0000000..8a81272 --- /dev/null +++ b/src/main/java/inscription/package-info.java @@ -0,0 +1,8 @@ +/** + * + */ +/** + * @author etu5 + * + */ +package inscription; \ No newline at end of file diff --git a/src/main/java/personnel/Personnel.java b/src/main/java/personnel/Personnel.java new file mode 100644 index 0000000..f2b208a --- /dev/null +++ b/src/main/java/personnel/Personnel.java @@ -0,0 +1,55 @@ +package personnel; + + +public class Personnel { + private String nom; + private String prenom; + private String mail; + private String adrPostale; + + public String getPrenom() { + return prenom; + } + + + + public void setPrenom(String prenom) { + this.prenom = prenom; + } + + + public String getNom() { + return nom; + } + + + + public void setNom(String nom) { + this.nom = nom; + } + + + + public String getMail() { + return mail; + } + + + + public void setMail(String mail) { + this.mail = mail; + } + + + + public String getAdrPostale() { + return adrPostale; + } + + + + public void setAdrPostale(String adrPostale) { + this.adrPostale = adrPostale; + } + +} diff --git a/src/test/java/dcll/projetIAWS/AppTest.java b/src/test/java/dcll/projetIAWS/AppTest.java new file mode 100644 index 0000000..abe30bb --- /dev/null +++ b/src/test/java/dcll/projetIAWS/AppTest.java @@ -0,0 +1,38 @@ +package dcll.projetIAWS; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} diff --git a/target/classes/META-INF/MANIFEST.MF b/target/classes/META-INF/MANIFEST.MF new file mode 100644 index 0000000..17cf012 --- /dev/null +++ b/target/classes/META-INF/MANIFEST.MF @@ -0,0 +1,5 @@ +Manifest-Version: 1.0 +Built-By: etu5 +Build-Jdk: 1.6.0_25 +Created-By: Maven Integration for Eclipse + diff --git a/target/classes/META-INF/maven/dcll/projetIAWS/pom.properties b/target/classes/META-INF/maven/dcll/projetIAWS/pom.properties new file mode 100644 index 0000000..bd2f91d --- /dev/null +++ b/target/classes/META-INF/maven/dcll/projetIAWS/pom.properties @@ -0,0 +1,7 @@ +#Generated by Maven Integration for Eclipse +#Fri Mar 15 10:08:31 CET 2013 +version=0.0.1-SNAPSHOT +groupId=dcll +m2e.projectName=projetIAWS +m2e.projectLocation=/home/etu5/Workspaces/projetIAWS +artifactId=projetIAWS diff --git a/target/classes/META-INF/maven/dcll/projetIAWS/pom.xml b/target/classes/META-INF/maven/dcll/projetIAWS/pom.xml new file mode 100644 index 0000000..45d7153 --- /dev/null +++ b/target/classes/META-INF/maven/dcll/projetIAWS/pom.xml @@ -0,0 +1,25 @@ + + 4.0.0 + + dcll + projetIAWS + 0.0.1-SNAPSHOT + jar + + projetIAWS + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + 3.8.1 + test + + + diff --git a/target/classes/dcll/projetIAWS/App.class b/target/classes/dcll/projetIAWS/App.class new file mode 100644 index 0000000000000000000000000000000000000000..a3ae6e5b45d020cab83578c61bde01d1cae74cd7 GIT binary patch literal 545 zcmZuu%Sr=55Uk0=eYl#Kxbdxtr^JJcCl3)J2%@m4u#y}+O*TWEF#BM$5&SGYD0uJ# z{3x+E5kerB?&<2O>YARP->+`~XE@f7W2g>%rJOj4Mk2lK^gO2%#~KO@{`TJy=BTkz6EhQoHNYhVLa4V49h-s?COfrU-jWG+-){Rgqs`sKq4H_nPu%}^{HZh&HNU*Sv0|qV5G!(hAo6Ag*X`T$} zP1Ply8B8ylB)+(o*-CU;@M$&*4Uk#-3Lr-(+8{-ZDu*(oTs--N{x)r!6tgzy!YV~; uc7gI5RR-2kA|xZ9PsIp(N4Zk_!1i3gq!x&-6KyVH;1EZIGt?>O(D(y-I&pCT literal 0 HcmV?d00001 diff --git a/target/classes/inscription/InscriptionImpl.class b/target/classes/inscription/InscriptionImpl.class new file mode 100644 index 0000000000000000000000000000000000000000..80fbf00c37b82615e2ba32249cecaee8b402f5f6 GIT binary patch literal 1286 zcmbVLT~8B16g@*rcPR^$LW>kps9!Bus)G1Y)GCUuG*W|UqP{p?rm$qYTX(la6aNVR zffs!!i6;I4f0Xggwg{#2Vw%q0xpVKi=bk(B>-YDc0B&MkK_A1EX?uoiHhj~u^ZK!^ z*Bh3CFhgvY@A16F?d|+Vbypa^f(XORS!uQ}+!{9oLuAFYP5&W7D3h%)gjby{5k&}t z8WgAuBPG)oubTC$aNqE%MH%suV{og&T~qEm&al5@dJNMPeJ0TYLt;<3X3aFXY@{q) z&#`S`F|21w#|>=yu4!)<{?C)uRg5vPViXBXC`fi`(}vb?4wDS3;n+SW!lduX`l~zK z-4q|2!Zt)9`%VH)X*iE*hCz#azHV=cPa8E7E2C$1d3;gB3}zVyyk^x4*i)-?*xQ1N zOAJFz+uY0fmM0b$YOVyhqTwp8(KM(mw}?>UB%$_1i3&~0cIt8jJ!(;I!xh14xXw+| zG|IQ!vg7$&4o&)OhGgb_Z)&y@1+_Lnw{20ut!}|Sd%mb^Si)^8?lgU()`=L^p-p6ZdIpdp6QC?4RE0=jTxK@Z(98j5(#pfn`1MTDiq6&0%t zqY||XRK>H7`>0r;Cna%rn=~BzN3V1`+r{2?ot)hSK5Yew>^g*LF5;#K`B3o+*U>GB`BSA4rt4#hvU=lK&i^p3S-$yE! zixpc)g+H`#A)apG@;)Ll`yg~cQElX5$^m6hBTCn7D5$X1M(I=_JYv_`SN%wf39(j%> sNl^)4oRmu-g(Q)fz(aa_WlRQ5B-;eAhUXNgLdOddOscEXz7H?|0KQ!#QUCw| literal 0 HcmV?d00001 diff --git a/target/classes/inscription/InscriptionInterface.class b/target/classes/inscription/InscriptionInterface.class new file mode 100644 index 0000000000000000000000000000000000000000..a3a1dc74777e5dba64328a97ddfac9e868d8ad7a GIT binary patch literal 243 zcmbVHu?oUK6w9mHQzsV(H%DD8&hA1{Q0Nz&$7^||yvp_L$2s@`ew5fwU7TD(2nk8v zpXUp}9y5c8uoi8cmwS*}lXT#z2KKpiY%nG)O556`vRWjUTgfgEmMwe9#o0c2W#81Q yToF#2^I*<`7cCC|Dch7V&+3PFe3Xg_t6%$eeOpW*jJjI@b#o_(dj`{Cgy|P=kx425 literal 0 HcmV?d00001 diff --git a/target/classes/inscription/package-info.class b/target/classes/inscription/package-info.class new file mode 100644 index 0000000000000000000000000000000000000000..86aac0df43a238ac0747931eb86428dc624e65d7 GIT binary patch literal 117 zcmX^0Z`VEs1_nb0c6J6PMh1z@yyE1d%z~24{5<`F#N_P6^iy;5QWbs#%_YcPatVa`ArK=s6>QBuUa8hm3o!ZNL1W!!YUX!HgXKl1rn%I zFZuv|sERWt5Y=pMc6Mjx%zQh$fB*gd17IKTJrop{E=)3tqsWBq?&Hpbqp)zUuXH=q z(V+dKcW(NrLNSVm3f0aea-1eXH29?8UL+=qIzt_V3T1tobmLK~L&M~zwzV5Cs%SdfWO8kn>@ zrdV#ao>P{fQ1{`%W%6i}Tx&kh6;780kK&=o-uRdinM)a63LazMc~c2)_;?{fk3sP% zR2cp8GyutY>!Tz&73NGLoYQf9ne@%KKyE$v^a6V_Vr)@Z+tlB|V@*t}OS(^ePgBFlA zE692tq+tcww1ceYL7D_6Cv=W$P_Pu%YX0o4OZyx{-v85x&uzJ(?eS0j!p@`2ma|+%S=SaptM1&1}O5$~m^FG*ABn6v;V?6m`l@kfR4E?(M%|=9#{7Fen=7X@!_o z%u&8FVZp>aWyHq