package java8;

import java7.UnitTestRunner;
import org.junit.Test;
import static org.junit.Assert.*;

public class InterfaceMethodTest {
    
    public interface IF1 {
        public static int x() {
            return 1;
        }
    }
    
    public static void main(String[] args) {
        UnitTestRunner.run(InterfaceMethodTest.class);
    }
    
    @Test
    public void interfaceStaticMethod() {
        assertEquals(1, IF1.x());
    }
    
}

@@ -167,31 +167,24 @@
 1 %7B%0A        
-public 
 static int x
@@ -184,24 +184,24 @@
 c int x() %7B%0A
+
             
@@ -216,24 +216,142 @@
 ;%0A        %7D%0A
+        default int y() %7B%0A            return 2;%0A        %7D%0A    %7D%0A    %0A    public class IMPL1 implements IF1 %7B%0A        %0A
     %7D%0A    %0A 
@@ -490,23 +490,103 @@
 oid 
-interfaceStatic
+staticMethod() %7B%0A        assertEquals(1, IF1.x());%0A    %7D%0A    %0A    @Test%0A    public void default
 Meth
@@ -609,32 +609,40 @@
 ssertEquals(
-1, IF1.x
+2, new IMPL1().y
 ());%0A    %7D%0A 

test interface method