Created
October 30, 2014 12:17
-
-
Save Fuud/54bfa9e12244a84c417d to your computer and use it in GitHub Desktop.
GridKit. Field access. NPE.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gridkit.nanocloud.Cloud; | |
import org.gridkit.nanocloud.CloudFactory; | |
import org.gridkit.vicluster.ViNode; | |
import org.gridkit.vicluster.ViProps; | |
import org.junit.Test; | |
public class UseFieldTest { | |
private int port = 8080; | |
@Test | |
public void verify_password_auth() { | |
Cloud c = CloudFactory.createCloud(); | |
final ViNode allNodes = c.node("**"); | |
ViProps.at(allNodes).setLocalType(); | |
c.node("node1").exec(new Runnable() { | |
@Override | |
public void run() { | |
System.out.println(port); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment