File tree Expand file tree Collapse file tree 4 files changed +79
-0
lines changed
TDDMicroExercises/Java/TelemetrySystem/src/main/java/tddmicroexercises/telemetrysystem/somedependencies Expand file tree Collapse file tree 4 files changed +79
-0
lines changed Original file line number Diff line number Diff line change
1
+ package tddmicroexercises .telemetrysystem .somedependencies ;
2
+
3
+ import tddmicroexercises .telemetrysystem .TelemetryClient ;
4
+
5
+ public class TelemetryClientClient
6
+ {
7
+ // A class with the only goal of simulating a dependency on TelemetryClient
8
+ // that has impact on the refactoring.
9
+
10
+ public TelemetryClientClient ()
11
+ {
12
+ TelemetryClient tc = new TelemetryClient ();
13
+ if (!tc .getOnlineStatus ())
14
+ tc .connect ("a connection string" );
15
+
16
+ tc .send ("some message" );
17
+
18
+ String response = tc .receive ();
19
+
20
+ tc .disconnect ();
21
+
22
+ }
23
+ }
Original file line number Diff line number Diff line change
1
+ package tddmicroexercises .telemetrysystem .somedependencies ;
2
+
3
+ import tddmicroexercises .telemetrysystem .TelemetryDiagnosticControls ;
4
+
5
+ public class TelemetryDiagnosticControlsClient1
6
+ {
7
+ // A class with the only goal of simulating a dependency on TelemetryDiagnosticControls
8
+ // that has impact on the refactoring.
9
+
10
+ public TelemetryDiagnosticControlsClient1 () throws Exception {
11
+
12
+ TelemetryDiagnosticControls teleDiagnostic = new TelemetryDiagnosticControls ();
13
+
14
+ teleDiagnostic .checkTransmission ();
15
+
16
+ String result = teleDiagnostic .getDiagnosticInfo ();
17
+ }
18
+ }
Original file line number Diff line number Diff line change
1
+ package tddmicroexercises .telemetrysystem .somedependencies ;
2
+
3
+ import tddmicroexercises .telemetrysystem .TelemetryDiagnosticControls ;
4
+
5
+ public class TelemetryDiagnosticControlsClient2
6
+ {
7
+ // A class with the only goal of simulating a dependency on TelemetryDiagnosticControls
8
+ // that has impact on the refactoring.
9
+
10
+ public TelemetryDiagnosticControlsClient2 () throws Exception {
11
+
12
+ TelemetryDiagnosticControls teleDiagnostic = new TelemetryDiagnosticControls ();
13
+
14
+ teleDiagnostic .checkTransmission ();
15
+
16
+ String result = teleDiagnostic .getDiagnosticInfo ();
17
+ }
18
+ }
Original file line number Diff line number Diff line change
1
+ package tddmicroexercises .telemetrysystem .somedependencies ;
2
+
3
+ import tddmicroexercises .telemetrysystem .TelemetryDiagnosticControls ;
4
+
5
+ public class TelemetryDiagnosticControlsClient3
6
+ {
7
+ // A class with the only goal of simulating a dependency on TelemetryDiagnosticControls
8
+ // that has impact on the refactoring.
9
+
10
+ public TelemetryDiagnosticControlsClient3 () throws Exception {
11
+
12
+ TelemetryDiagnosticControls teleDiagnostic = new TelemetryDiagnosticControls ();
13
+
14
+ teleDiagnostic .checkTransmission ();
15
+
16
+ String result = teleDiagnostic .getDiagnosticInfo ();
17
+ }
18
+ }
19
+
20
+
You can’t perform that action at this time.
0 commit comments