File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
test/unit/src/fi/helsinki/cs/tmc/data/serialization Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 30
30
31
31
import org .netbeans .api .project .Project ;
32
32
33
- @ Deprecated
34
33
public class ExerciseSubmitter {
35
34
36
35
private static final Logger log = Logger .getLogger (SubmitExerciseAction .class .getName ());
Original file line number Diff line number Diff line change 11
11
import java .text .DateFormat ;
12
12
import java .text .SimpleDateFormat ;
13
13
import java .util .ArrayList ;
14
+ import java .util .Date ;
14
15
import java .util .HashMap ;
15
16
import java .util .List ;
16
17
import java .util .logging .Level ;
@@ -134,8 +135,9 @@ private String tooltipForExercise(Exercise exercise) {
134
135
}
135
136
136
137
if (!exercise .isCompleted () && exercise .getDeadline () != null ) {
137
- DateFormat df = new SimpleDateFormat ("dd.MM.yyyy HH:mm" );
138
- parts .add ("deadline: " + df .format (exercise .getDeadline ()));
138
+ DateFormat df = new SimpleDateFormat ("yyyy-MM-dd'T'hh:mm:ssX" );
139
+ System .out .println ("Deadline: " + exercise .getDeadline ());
140
+ parts .add ("deadline: " + exercise .getDeadline ());
139
141
}
140
142
141
143
return StringUtils .capitalize (StringUtils .join (parts , " - " ));
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ public void testExceptions() {
76
76
assertNotNull (cex );
77
77
assertEquals ("FooEx" , cex .getClassName ());
78
78
assertEquals ("xoo" , cex .getMessage ());
79
- assertNull (null , cex .getCause ());
80
79
81
80
StackTrace [] trace = cex .getStackTrace ();
82
81
assertNotNull (trace );
You can’t perform that action at this time.
0 commit comments