void function ( ) { NullEqualToIsParentOrIsGrandparentOfCurrentLocation loc0 = new NullEqualToIsParentOrIsGrandparentOfCurrentLocation ( Suppliers . ofInstance ( host ) ) ; Hardware loc1 = new HardwareBuilder ( ) . id ( "srini_string" ) . location ( host ) . build ( ) ; assertTrue ( loc0 . apply ( loc1 ) ) ; }
if the input location is a grandparent of the specified location , then we are ok . concode_field_sep Location otherRegion concode_elem_sep Location otherZone concode_elem_sep Location host concode_elem_sep Location provider concode_elem_sep Location region concode_elem_sep Location orphanedZone concode_elem_sep Location orphanedRegion concode_elem_sep Location zone concode_field_sep void testThrowIllegalArgumentExceptionWhenWhenISpecifyAnOrphanedZone concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichTheSameScopeByNotEqualToInputLocationAndParentsAreNull concode_elem_sep void testReturnTrueWhenISpecifyALocationAndInputLocationIsNull concode_elem_sep void testThrowIllegalStateExceptionWhenInputIsAnOrphanedZone concode_elem_sep void testReturnTrueWhenISpecifyALocationWhichIsAChildOfInput concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichIsNotAGrandChildOfInput concode_elem_sep void testReturnTrueWhenISpecifyARegionAndInputLocationIsProvider concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichTheSameScopeByNotEqualToInputLocationAndParentsAreNotNull concode_elem_sep void testThrowIllegalArgumentExceptionWhenWhenISpecifyAnOrphanedRegion concode_elem_sep void testReturnTrueWhenIDontSpecifyALocation concode_elem_sep void testThrowIllegalStateExceptionWhenInputIsAnOrphanedRegion concode_elem_sep void testReturnTrueWhenIDontSpecifyALocationAndInputLocationIsNull concode_elem_sep void testReturnFalseWhenISpecifyALocationWhichIsNotAChildOfInput