@Test public void shouldNotRecogniseAsApplicationContextServiceWhenObjectClassIsDifferent() { ServiceReference serviceReference = mock(ServiceReference.class); when(serviceReference.getBundle()).thenReturn(new MockBundle("mock-bundle")); when(serviceReference.getProperty(ApplicationContextServiceReferenceUtils.SERVICE_NAME)).thenReturn("mock-bundle"); when(serviceReference.getProperty(Constants.OBJECTCLASS)).thenReturn(new String[]{"abcd", "he.llo", "xyz"}); assertTrue(ApplicationContextServiceReferenceUtils.isNotValid(serviceReference)); }
public static boolean isNotValid(ServiceReference serviceReference) { return !isValid(serviceReference); }
ApplicationContextServiceReferenceUtils { public static boolean isNotValid(ServiceReference serviceReference) { return !isValid(serviceReference); } }
ApplicationContextServiceReferenceUtils { public static boolean isNotValid(ServiceReference serviceReference) { return !isValid(serviceReference); } private  ApplicationContextServiceReferenceUtils(); }
ApplicationContextServiceReferenceUtils { public static boolean isNotValid(ServiceReference serviceReference) { return !isValid(serviceReference); } private  ApplicationContextServiceReferenceUtils(); static boolean isValid(ServiceReference serviceReference); static boolean isNotValid(ServiceReference serviceReference); }
ApplicationContextServiceReferenceUtils { public static boolean isNotValid(ServiceReference serviceReference) { return !isValid(serviceReference); } private  ApplicationContextServiceReferenceUtils(); static boolean isValid(ServiceReference serviceReference); static boolean isNotValid(ServiceReference serviceReference); static final String SERVICE_NAME; }