< prev index next >

test/sun/invoke/util/ValueConversionsTest.java

Print this page




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 package test.sun.invoke.util;
  25 
  26 import sun.invoke.util.ValueConversions;
  27 import sun.invoke.util.Wrapper;
  28 import java.lang.invoke.MethodHandles;
  29 import java.lang.invoke.MethodType;
  30 import java.lang.invoke.MethodHandle;
  31 import java.io.Serializable;
  32 import java.util.Arrays;
  33 import org.junit.Test;
  34 import static org.junit.Assert.*;
  35 
  36 /* @test
  37  * @summary unit tests for value-type conversion utilities

  38  * @compile -XDignore.symbol.file ValueConversionsTest.java
  39  * @run junit/othervm test.sun.invoke.util.ValueConversionsTest
  40  */
  41 
  42 /**
  43  *
  44  * @author jrose
  45  */
  46 public class ValueConversionsTest {
  47     @Test
  48     public void testUnbox() throws Throwable {
  49         testUnbox(false);
  50     }
  51 
  52     @Test
  53     public void testUnboxCast() throws Throwable {
  54         testUnbox(true);
  55     }
  56 
  57     private void testUnbox(boolean doCast) throws Throwable {




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 package test.sun.invoke.util;
  25 
  26 import sun.invoke.util.ValueConversions;
  27 import sun.invoke.util.Wrapper;
  28 import java.lang.invoke.MethodHandles;
  29 import java.lang.invoke.MethodType;
  30 import java.lang.invoke.MethodHandle;
  31 import java.io.Serializable;
  32 import java.util.Arrays;
  33 import org.junit.Test;
  34 import static org.junit.Assert.*;
  35 
  36 /* @test
  37  * @summary unit tests for value-type conversion utilities
  38  * @modules java.base/sun.invoke.util
  39  * @compile -XDignore.symbol.file ValueConversionsTest.java
  40  * @run junit/othervm test.sun.invoke.util.ValueConversionsTest
  41  */
  42 
  43 /**
  44  *
  45  * @author jrose
  46  */
  47 public class ValueConversionsTest {
  48     @Test
  49     public void testUnbox() throws Throwable {
  50         testUnbox(false);
  51     }
  52 
  53     @Test
  54     public void testUnboxCast() throws Throwable {
  55         testUnbox(true);
  56     }
  57 
  58     private void testUnbox(boolean doCast) throws Throwable {


< prev index next >