|
28 | 28 | import org.mastodon.tracking.linking.graph.AbstractGraphParticleLinkerOp; |
29 | 29 | import org.mastodon.tracking.mamut.linking.LinkCostFeature; |
30 | 30 | import org.scijava.Context; |
| 31 | +import org.scijava.app.StatusService; |
31 | 32 |
|
32 | 33 | import mpicbg.spim.data.SpimDataException; |
33 | 34 |
|
@@ -63,6 +64,11 @@ void testLinking3D() throws IOException, SpimDataException, NoSuchFieldException |
63 | 64 | logger.setAccessible( true ); |
64 | 65 | logger.set( linker, log ); |
65 | 66 |
|
| 67 | + StatusService statusService = context.getService( StatusService.class ); |
| 68 | + Field status = AbstractGraphParticleLinkerOp.class.getDeclaredField( "statusService" ); |
| 69 | + status.setAccessible( true ); |
| 70 | + status.set( linker, statusService ); |
| 71 | + |
66 | 72 | Field edgeCreator = AbstractGraphParticleLinkerOp.class.getDeclaredField( "edgeCreator" ); |
67 | 73 | EdgeCreator< Spot > spotEdgeCreator = new MyEdgeCreator( appModel.getModel().getGraph() ); |
68 | 74 | edgeCreator.setAccessible( true ); |
@@ -99,6 +105,11 @@ void testLinking2D() throws IOException, SpimDataException, NoSuchFieldException |
99 | 105 | logger.setAccessible( true ); |
100 | 106 | logger.set( linker, log ); |
101 | 107 |
|
| 108 | + StatusService statusService = context.getService( StatusService.class ); |
| 109 | + Field status = AbstractGraphParticleLinkerOp.class.getDeclaredField( "statusService" ); |
| 110 | + status.setAccessible( true ); |
| 111 | + status.set( linker, statusService ); |
| 112 | + |
102 | 113 | Field edgeCreator = AbstractGraphParticleLinkerOp.class.getDeclaredField( "edgeCreator" ); |
103 | 114 | EdgeCreator< Spot > spotEdgeCreator = new MyEdgeCreator( appModel.getModel().getGraph() ); |
104 | 115 | edgeCreator.setAccessible( true ); |
|
0 commit comments