1 package org.apache.maven.surefire.api.booter;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.surefire.api.report.ReportEntry;
23 import org.apache.maven.surefire.api.report.StackTraceWriter;
24
25 import java.util.Map;
26
27
28
29
30
31
32
33 public interface MasterProcessChannelEncoder
34 {
35 MasterProcessChannelEncoder asRerunMode();
36
37 MasterProcessChannelEncoder asNormalMode();
38
39 boolean checkError();
40
41 void onJvmExit();
42
43 void sendSystemProperties( Map<String, String> sysProps );
44
45 void testSetStarting( ReportEntry reportEntry, boolean trimStackTraces );
46
47 void testSetCompleted( ReportEntry reportEntry, boolean trimStackTraces );
48
49 void testStarting( ReportEntry reportEntry, boolean trimStackTraces );
50
51 void testSucceeded( ReportEntry reportEntry, boolean trimStackTraces );
52
53 void testFailed( ReportEntry reportEntry, boolean trimStackTraces );
54
55 void testSkipped( ReportEntry reportEntry, boolean trimStackTraces );
56
57 void testError( ReportEntry reportEntry, boolean trimStackTraces );
58
59 void testAssumptionFailure( ReportEntry reportEntry, boolean trimStackTraces );
60
61 void stdOut( String msg, boolean newLine );
62
63 void stdErr( String msg, boolean newLine );
64
65 void consoleInfoLog( String msg );
66
67 void consoleErrorLog( String msg );
68
69 void consoleErrorLog( Throwable t );
70
71 void consoleErrorLog( String msg, Throwable t );
72
73 void consoleErrorLog( StackTraceWriter stackTraceWriter, boolean trimStackTraces );
74
75 void consoleDebugLog( String msg );
76
77 void consoleWarningLog( String msg );
78
79 void bye();
80
81 void stopOnNextTest();
82
83 void acquireNextTest();
84
85 void sendExitError( StackTraceWriter stackTraceWriter, boolean trimStackTraces );
86 }