fixed for Java 8
This commit is contained in:
		
							parent
							
								
									697eff4055
								
							
						
					
					
						commit
						3e3887a90c
					
				
					 1 changed files with 0 additions and 20 deletions
				
			
		|  | @ -1437,19 +1437,11 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest { | |||
|                 .stream() | ||||
|                 .filter(attr -> "URLFilterEnable".equals(attr.name)) | ||||
|                 .findFirst() | ||||
|                 .or(() -> { | ||||
|                     fail("Expected one attribute"); | ||||
|                     return null; | ||||
|                 }) | ||||
|                 .ifPresent( | ||||
|                         attr -> { | ||||
|                             values.stream() | ||||
|                                     .filter(cv -> cv.attributeId.equals(attr.id)) | ||||
|                                     .findFirst() | ||||
|                                     .or(() -> { | ||||
|                                         fail("Expected one attribute"); | ||||
|                                         return null; | ||||
|                                     }) | ||||
|                                     .ifPresent( | ||||
|                                             val -> assertEquals(Constants.TRUE_STRING, val.value)); | ||||
|                         }); | ||||
|  | @ -1458,30 +1450,18 @@ public class UseCasesIntegrationTest extends GuiIntegrationTest { | |||
|                 .stream() | ||||
|                 .filter(attr -> "URLFilterRules".equals(attr.name)) | ||||
|                 .findFirst() | ||||
|                 .or(() -> { | ||||
|                     fail("Expected one attribute"); | ||||
|                     return null; | ||||
|                 }) | ||||
|                 .ifPresent( | ||||
|                         parent -> { | ||||
|                             attributes.stream() | ||||
|                                     .filter(attr -> parent.id.equals(attr.parentId) | ||||
|                                             && "URLFilterRules.expression".equals(attr.name)) | ||||
|                                     .findFirst() | ||||
|                                     .or(() -> { | ||||
|                                         fail("Expected one attribute"); | ||||
|                                         return null; | ||||
|                                     }) | ||||
|                                     .ifPresent( | ||||
|                                             tAttr -> { | ||||
|                                                 values.stream() | ||||
|                                                         .filter(tVal -> tVal.attributeId.equals(tAttr.id) | ||||
|                                                                 && tVal.listIndex == 0) | ||||
|                                                         .findFirst() | ||||
|                                                         .or(() -> { | ||||
|                                                             fail("Expected one value"); | ||||
|                                                             return null; | ||||
|                                                         }) | ||||
|                                                         .ifPresent( | ||||
|                                                                 firstTVal -> assertEquals("jrtjrtzj", firstTVal.value)); | ||||
|                                             }); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti