Skip to content

Commit

Permalink
#1
Browse files Browse the repository at this point in the history
  • Loading branch information
smailGithub committed Mar 15, 2013
1 parent af637e9 commit 492eb9c
Show file tree
Hide file tree
Showing 16 changed files with 209 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>dcll</groupId>
<artifactId>projetIAWS</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>projetIAWS</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
13 changes: 13 additions & 0 deletions src/main/java/dcll/projetIAWS/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package dcll.projetIAWS;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
27 changes: 27 additions & 0 deletions src/main/java/inscription/InscriptionImpl.java
Original file line number Diff line number Diff line change
@@ -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("", "", "[email protected]", ""));
System.out.println(i.verificationPersonnel("", "", "testuniv-tlse3.fr", ""));
System.out.println(i.verificationPersonnel("", "", "univ-tlse3.fr", ""));
System.out.println(i.verificationPersonnel("", "", "[email protected]", ""));
}

}
6 changes: 6 additions & 0 deletions src/main/java/inscription/InscriptionInterface.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package inscription;

public interface InscriptionInterface {
public int verificationPersonnel(String nom, String prenom, String mail, String adrPostale);

}
8 changes: 8 additions & 0 deletions src/main/java/inscription/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
*
*/
/**
* @author etu5
*
*/
package inscription;
55 changes: 55 additions & 0 deletions src/main/java/personnel/Personnel.java
Original file line number Diff line number Diff line change
@@ -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;
}

}
38 changes: 38 additions & 0 deletions src/test/java/dcll/projetIAWS/AppTest.java
Original file line number Diff line number Diff line change
@@ -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 );
}
}
5 changes: 5 additions & 0 deletions target/classes/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Manifest-Version: 1.0
Built-By: etu5
Build-Jdk: 1.6.0_25
Created-By: Maven Integration for Eclipse

7 changes: 7 additions & 0 deletions target/classes/META-INF/maven/dcll/projetIAWS/pom.properties
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions target/classes/META-INF/maven/dcll/projetIAWS/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>dcll</groupId>
<artifactId>projetIAWS</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>projetIAWS</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Binary file added target/classes/dcll/projetIAWS/App.class
Binary file not shown.
Binary file added target/classes/inscription/InscriptionImpl.class
Binary file not shown.
Binary file not shown.
Binary file added target/classes/inscription/package-info.class
Binary file not shown.
Binary file added target/classes/personnel/Personnel.class
Binary file not shown.
Binary file added target/test-classes/dcll/projetIAWS/AppTest.class
Binary file not shown.

0 comments on commit 492eb9c

Please sign in to comment.