@Test public void testGetVersion() { int progNum = 15; int progVers = 17; OncRpcProgram program = new OncRpcProgram(progNum, progVers); assertEquals("Program version miss match", progVers, program.getVersion()); }
public int getVersion() { return _version; }
OncRpcProgram { public int getVersion() { return _version; } }
OncRpcProgram { public int getVersion() { return _version; } OncRpcProgram(int number, int version); }
OncRpcProgram { public int getVersion() { return _version; } OncRpcProgram(int number, int version); int getNumber(); int getVersion(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
OncRpcProgram { public int getVersion() { return _version; } OncRpcProgram(int number, int version); int getNumber(); int getVersion(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }