PageRenderTime 34ms CodeModel.GetById 28ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/java/org/bitbucket/jdk7fun/ExtendedInterfaceSamConversionTest.java

https://bitbucket.org/blob79/jdk7fun
Java | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 25b84376008bfd949c68796b6db1ecf8 MD5 | raw file
 1package org.bitbucket.jdk7fun;
 2
 3import static org.junit.Assert.*;
 4import org.junit.*;
 5
 6public class ExtendedInterfaceSamConversionTest{
 7
 8	@Test public void extendedInterface(){
 9		String value = "hi";
10		A t = #{value};
11		assertEquals(value, t.m()); 
12	}
13
14	interface A{
15		Object m();
16		void n() default E.n;
17	}
18
19	static class E{
20		public static void n(A a){};
21	}
22}
23