|
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 TripletTest { 17 18 Triplet<String, Integer, Boolean> triplet = new Triplet<>("Hello World", 50, true); 19 20 @Test 21 public void getFirst() throws Exception { 22 System.out.println(triplet.getFirst()); 23 } 24 25 @Test 26 public void setFirst() throws Exception { 27 triplet.setFirst("asdasd"); 28 } 29 30 @Test 31 public void getSecond() throws Exception { 32 System.out.println(triplet.getSecond()); 33 } 34 35 @Test 36 public void setSecond() throws Exception { 37 triplet.setSecond(5); 38 } 39 40 @Test 41 public void getThird() throws Exception { 42 System.out.println(triplet.getThird()); 43 } 44 45 @Test 46 public void setThird() throws Exception { 47 triplet.setThird(true); 48 } 49 }