Skip to content

Commit 10f59b0

Browse files
authored
Plus 0.0.10 (#385)
* Fix Thickness tests to use separation not spacing
1 parent 6f03a1a commit 10f59b0

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Modern/wrapperPlugins/src/test/java/org/bonej/wrapperPlugins/ThicknessWrapperTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ public void testMapImageLUTs() throws ExecutionException,
112112
// VERIFY
113113
final LUT trabecularMap = ((ImagePlus) module.getOutput("trabecularMap"))
114114
.getLuts()[0];
115-
final LUT spacingMap = ((ImagePlus) module.getOutput("spacingMap"))
115+
final LUT separationMap = ((ImagePlus) module.getOutput("separationMap"))
116116
.getLuts()[0];
117117
assertArrayEquals("Trabecular map doesn't have the 'fire' LUT", fireLUT.getBytes(),
118118
trabecularMap.getBytes());
119119
assertArrayEquals("Spacing map doesn't have the 'fire' LUT", fireLUT
120-
.getBytes(), spacingMap.getBytes());
120+
.getBytes(), separationMap.getBytes());
121121
}
122122

123123
@Test
@@ -134,7 +134,7 @@ public void testMapImagesBoth() throws ExecutionException,
134134

135135
// VERIFY
136136
assertNotNull(module.getOutput("trabecularMap"));
137-
assertNotNull(module.getOutput("spacingMap"));
137+
assertNotNull(module.getOutput("separationMap"));
138138
}
139139

140140
@Test
@@ -151,7 +151,7 @@ public void testMapImagesShowMapsFalse() throws ExecutionException,
151151

152152
// VERIFY
153153
assertNull(module.getOutput("trabecularMap"));
154-
assertNull(module.getOutput("spacingMap"));
154+
assertNull(module.getOutput("separationMap"));
155155
}
156156

157157
@Test
@@ -163,15 +163,15 @@ public void testMapImagesTrabecularSpacing() throws ExecutionException,
163163

164164
// EXECUTE
165165
final CommandModule module = command().run(ThicknessWrapper.class,
166-
true, "inputImage", imagePlus, "mapChoice", "Trabecular spacing",
166+
true, "inputImage", imagePlus, "mapChoice", "Trabecular separation",
167167
"showMaps", true).get();
168168

169169
// VERIFY
170-
final ImagePlus spacingMap = (ImagePlus) module.getOutput("spacingMap");
171-
assertNotNull(spacingMap);
170+
final ImagePlus separationMap = (ImagePlus) module.getOutput("separationMap");
171+
assertNotNull(separationMap);
172172
assertNull(module.getOutput("trabecularMap"));
173173
assertNotSame("Original image should not have been overwritten", imagePlus,
174-
spacingMap);
174+
separationMap);
175175
}
176176

177177
@Test
@@ -190,7 +190,7 @@ public void testMapImagesTrabecularThickness() throws ExecutionException,
190190
final ImagePlus trabecularMap = (ImagePlus) module.getOutput(
191191
"trabecularMap");
192192
assertNotNull(trabecularMap);
193-
assertNull(module.getOutput("spacingMap"));
193+
assertNull(module.getOutput("separationMap"));
194194
assertNotSame("Original image should not have been overwritten", imagePlus,
195195
trabecularMap);
196196
}

0 commit comments

Comments
 (0)