samples/erasure/src-impl/test/ErasureTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Wed, 08 Aug 2012 22:26:30 +0200
changeset 391 d293aacf31f8
parent 390 a72eecb99952
permissions -rw-r--r--
Andrei: Don't put the code into main method
     1 package test;
     2 
     3 import static api.Erasure.arePositive;
     4 import java.util.Arrays;
     5 import java.util.List;
     6 
     7 public class ErasureTest {
     8     public static void main(String[] args) {
     9         // BEGIN: variance.erasure.test
    10         List<Integer> oneToTen = Arrays.asList(2, 4, 6, 8, 10);
    11         boolean positive = arePositive(oneToTen);
    12         System.err.println("positive = " + positive);
    13         assert positive : "All the numbers are positive: " + oneToTen;
    14         // END: variance.erasure.test
    15     }
    16 }