@Test(expected = IllegalArgumentException.class) public void testSetPortWithNegativeValueShoudlThrowException(){ context.setPort(-2); }
public void setPort(Integer port) { Util.check(port>0, "port is negative"); this.port = port; }
AppContext implements Serializable { public void setPort(Integer port) { Util.check(port>0, "port is negative"); this.port = port; } }
AppContext implements Serializable { public void setPort(Integer port) { Util.check(port>0, "port is negative"); this.port = port; }  }
AppContext implements Serializable { public void setPort(Integer port) { Util.check(port>0, "port is negative"); this.port = port; }  String getNodeName(); void setNodeName(String nodeName); Integer getPort(); void setPort(Integer port); String getMasterPeerIpAddress(); void setMasterPeerIpAddress(String masterPeerIpAddress); Integer getMasterPeerPort(); void setMasterPeerPort(Integer masterPeerPort); String getStorageBasePath(); void setStorageBasePath(String storageBasePath); BootstrapType getBootstrapType(); void setBootstrapType(BootstrapType bootstrapType); String getStrAddressMint(); void setStrAddressMint(String strAddressMint); BigInteger getValueMint(); void setPrivateKey(PrivateKey privateKey); PrivateKey getPrivateKey(); List<String> getListNTPServers(); }
AppContext implements Serializable { public void setPort(Integer port) { Util.check(port>0, "port is negative"); this.port = port; }  String getNodeName(); void setNodeName(String nodeName); Integer getPort(); void setPort(Integer port); String getMasterPeerIpAddress(); void setMasterPeerIpAddress(String masterPeerIpAddress); Integer getMasterPeerPort(); void setMasterPeerPort(Integer masterPeerPort); String getStorageBasePath(); void setStorageBasePath(String storageBasePath); BootstrapType getBootstrapType(); void setBootstrapType(BootstrapType bootstrapType); String getStrAddressMint(); void setStrAddressMint(String strAddressMint); BigInteger getValueMint(); void setPrivateKey(PrivateKey privateKey); PrivateKey getPrivateKey(); List<String> getListNTPServers();  }