Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tok-chef
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine HAZEBROUCK
tok-chef
Commits
554eb658
Commit
554eb658
authored
Sep 11, 2024
by
Antoine Hazebrouck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chef et padawan
parent
b4e15fdc
Pipeline
#2875
canceled with stages
Changes
9
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
119 additions
and
32 deletions
+119
-32
.gitignore
.gitignore
+2
-1
pom.xml
pom.xml
+40
-30
Application.java
src/main/java/imt/Application.java
+4
-1
Chef.java
src/main/java/imt/Chef.java
+19
-0
Genre.java
src/main/java/imt/Genre.java
+5
-0
Jury.java
src/main/java/imt/Jury.java
+15
-0
Padawan.java
src/main/java/imt/Padawan.java
+17
-0
Person.java
src/main/java/imt/Person.java
+12
-0
Specialite.java
src/main/java/imt/Specialite.java
+5
-0
No files found.
.gitignore
View file @
554eb658
target
org.eclipse.*
.project
.classpath
\ No newline at end of file
.classpath
.factorypath
\ No newline at end of file
pom.xml
View file @
554eb658
<?xml version="1.0" encoding="UTF-8"?>
<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>
<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>
imt
</groupId>
<artifactId>
tok-chef
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<groupId>
imt
</groupId>
<artifactId>
tok-chef
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<java.version>
17
</java.version>
<maven.compiler.source>
${java.version}
</maven.compiler.source>
<maven.compiler.target>
${java.version}
</maven.compiler.target>
</properties>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<java.version>
17
</java.version>
<maven.compiler.source>
${java.version}
</maven.compiler.source>
<maven.compiler.target>
${java.version}
</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-engine
</artifactId>
<version>
5.9.2
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>
org.junit.jupiter
</groupId>
<artifactId>
junit-jupiter-engine
</artifactId>
<version>
5.9.2
</version>
<scope>
test
</scope>
</dependency>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
3.0.0-M8
</version>
</plugin>
</plugins>
</build>
</project>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.18.34
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
3.0.0-M8
</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
src/main/java/imt/Application.java
View file @
554eb658
...
...
@@ -3,6 +3,9 @@ package imt;
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
var
chef
=
new
Chef
(
1
,
"Caca"
,
"Pipi"
,
"DQSQFQSF"
,
Genre
.
HOMME
,
3
,
Specialite
.
CUISINIER
);
var
padawan
=
new
Padawan
(
1
,
"Hazebrouck"
,
"Antoine"
,
"06 51 73 08 05"
,
Genre
.
HOMME
,
chef
);
System
.
out
.
println
(
padawan
);
}
}
src/main/java/imt/Chef.java
0 → 100644
View file @
554eb658
package
imt
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
@ToString
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
Chef
extends
Person
{
private
final
int
etoiles
;
private
final
Specialite
specialite
;
public
Chef
(
int
id
,
String
nom
,
String
prenom
,
String
telephone
,
Genre
genre
,
int
etoiles
,
Specialite
specialite
)
{
super
(
id
,
nom
,
prenom
,
telephone
,
genre
);
this
.
etoiles
=
etoiles
;
this
.
specialite
=
specialite
;
}
}
src/main/java/imt/Genre.java
0 → 100644
View file @
554eb658
package
imt
;
public
enum
Genre
{
HOMME
,
FEMME
}
src/main/java/imt/Jury.java
0 → 100644
View file @
554eb658
// package imt;
// import lombok.Data;
// import lombok.EqualsAndHashCode;
// @EqualsAndHashCode(callSuper = true)
// @Data
// public class Jury extends Person {
// // private final int TODO faire les jurys
// public Jury() {
// super(null, null, null, null, null);
// }
// }
// TODO finir quand les Jurys sont finito
\ No newline at end of file
src/main/java/imt/Padawan.java
0 → 100644
View file @
554eb658
package
imt
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
@ToString
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Data
public
class
Padawan
extends
Person
{
private
final
Chef
chef
;
public
Padawan
(
int
id
,
String
nom
,
String
prenom
,
String
telephone
,
Genre
genre
,
Chef
chef
)
{
super
(
id
,
nom
,
prenom
,
telephone
,
genre
);
this
.
chef
=
chef
;
}
}
src/main/java/imt/Person.java
0 → 100644
View file @
554eb658
package
imt
;
import
lombok.Data
;
@Data
public
abstract
class
Person
{
private
final
int
id
;
private
final
String
nom
;
private
final
String
prenom
;
private
final
String
telephone
;
private
final
Genre
genre
;
}
src/main/java/imt/Specialite.java
0 → 100644
View file @
554eb658
package
imt
;
public
enum
Specialite
{
CUISINIER
,
PATISSIER
,
TRAVAIL_A_DISTANCE
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment