Skip to content
Snippets Groups Projects
Commit 793698d0 authored by Hong An Ho's avatar Hong An Ho
Browse files

Added attributes and constructor in TrainDeparture.

parent 235340c1
No related branches found
No related tags found
No related merge requests found
Pipeline #248179 failed
package edu.ntnu.stud;
import java.time.LocalTime;
public class TrainDeparture {
private final LocalTime departureTime;
private final String line;
private final int trainNumber;
private final String destination;
private int track;
private LocalTime delay;
public TrainDeparture(LocalTime departureTime, String line, int trainNumber, String destination,
int track, LocalTime delay) {
this.departureTime = departureTime;
this.line = line;
this.trainNumber = trainNumber;
this.destination = destination;
this.track = track;
this.delay = LocalTime.MIN;
}
}
...@@ -5,4 +5,7 @@ package edu.ntnu.stud; ...@@ -5,4 +5,7 @@ package edu.ntnu.stud;
*/ */
public class TrainDispatchApp { public class TrainDispatchApp {
// TODO: Fill in the main method and any other methods you need. // TODO: Fill in the main method and any other methods you need.
public static void main(String[] args) {
}
} }
Alle klassene som er testklasser (JUnit test klasser) plasserer du har.
Pass på at du har en testklasse for hver klasse du har laget.
Hver testklasse skal ha en testmetode for hver positive og negative test du ønsker å utføre på klassen.
Husk at test klassen og klassen som testes må ligge i samme pakke!
Når du har lest og forstått denne filen kan du velge å slette den.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment