@@ -234,45 +234,57 @@ public void testWindowCapabilitySupportsPrimaryImage() {
234234 windowCapability = createWindowCapability (false , false );
235235 when (menuCell .isSubMenuCell ()).thenReturn (true );
236236 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (5 , 0 , 0 )));
237- assertTrue (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
237+ assertFalse (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
238238
239239 // Test case 3
240+ windowCapability = createWindowCapability (true , false );
241+ when (menuCell .isSubMenuCell ()).thenReturn (true );
242+ when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (5 , 0 , 0 )));
243+ assertTrue (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
244+
245+ // Test case 4
240246 windowCapability = createWindowCapability (false , false );
241247 when (menuCell .isSubMenuCell ()).thenReturn (true );
242248 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (6 , 0 , 0 )));
249+ assertFalse (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
250+
251+ // Test case 5
252+ windowCapability = createWindowCapability (true , false );
253+ when (menuCell .isSubMenuCell ()).thenReturn (true );
254+ when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (6 , 0 , 0 )));
243255 assertTrue (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
244256
245- // Test case 4
257+ // Test case 6
246258 windowCapability = createWindowCapability (false , false );
247259 when (menuCell .isSubMenuCell ()).thenReturn (true );
248260 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (7 , 0 , 0 )));
249- assertTrue (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
261+ assertFalse (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
250262
251- // Test case 5
263+ // Test case 7
252264 windowCapability = createWindowCapability (false , false );
253265 when (menuCell .isSubMenuCell ()).thenReturn (true );
254266 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (7 , 1 , 0 )));
255267 assertFalse (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
256268
257- // Test case 6
269+ // Test case 8
258270 windowCapability = createWindowCapability (false , false );
259271 when (menuCell .isSubMenuCell ()).thenReturn (true );
260272 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (8 , 0 , 0 )));
261273 assertFalse (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
262274
263- // Test case 7
275+ // Test case 9
264276 windowCapability = createWindowCapability (false , true );
265277 when (menuCell .isSubMenuCell ()).thenReturn (true );
266278 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (8 , 0 , 0 )));
267279 assertTrue (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
268280
269- // Test case 8
281+ // Test case 10
270282 windowCapability = createWindowCapability (false , false );
271283 when (menuCell .isSubMenuCell ()).thenReturn (false );
272284 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (8 , 0 , 0 )));
273285 assertFalse (MenuReplaceUtilities .windowCapabilitySupportsPrimaryImage (internalInterface , windowCapability , menuCell ));
274286
275- // Test case 8
287+ // Test case 11
276288 windowCapability = createWindowCapability (true , false );
277289 when (menuCell .isSubMenuCell ()).thenReturn (false );
278290 when (internalInterface .getSdlMsgVersion ()).thenReturn (new SdlMsgVersion (new Version (8 , 0 , 0 )));
0 commit comments