TriConsumerTest.java
1    /* 
2     * Copyright (c) Waoss 
3     * 
4     * Mail me at rahul29112002@gmail.com for any queries :) 
5     * 
6     * This is free software licensed under the GNU General Public License.This license allows one to modify it on their will and also embed it or distribute it along with their own software. 
7     * 
8     * It is distributed in the hope that it shall be useful to whomsoever receives it,but does not provide ANY warranty or liability,not even the gurantee that the software will work in your certain usage. 
9     * You receive a copy of the GNU General Public License version 3.0 when you download this software.See LICENSE.MD for more details. 
10    */ 
11    
12   package com.waoss.util.fids; 
13    
14   import org.junit.Test; 
15    
16   public class TriConsumerTest { 
17       @Test 
18       public void accept() throws Exception {
19           TriConsumer<Integer, Integer, Integer> integerIntegerIntegerTriConsumer = (integer, integer2, integer3) -> { 
20               //doesn't really do anything
21               System.out.println(integer); 
22               System.out.println(integer2); 
23               System.out.println(integer3); 
24           }; 
25           integerIntegerIntegerTriConsumer.accept(4, 5, 3);
26       } 
27   }