@Test public void getStore_inputIRequestWithKey123_returnsStore() throws SocketException { runInit(); Assert.assertNotNull(Master.storeSockets); Master.storeSockets[0] = new Socket(); Master.storeSockets[1] = new Socket(); Master.storeSockets[0].setSendBufferSize(1); Master.storeSockets[1].setSendBufferSize(2); Socket actual = getStore(new ReadRequest(((char) 0) + "")); Assert.assertEquals(1, actual.getSendBufferSize()); }
public static Socket getStore(IRequest request) { return null; }
Master implements Runnable { public static Socket getStore(IRequest request) { return null; } }
Master implements Runnable { public static Socket getStore(IRequest request) { return null; } Master(Socket client); }
Master implements Runnable { public static Socket getStore(IRequest request) { return null; } Master(Socket client); @Override void run(); static void main(String[] args); static void initStores(int storeCount, ServerSocket serverSocket); static void init(int storeCount); static Socket getStore(IRequest request); }
Master implements Runnable { public static Socket getStore(IRequest request) { return null; } Master(Socket client); @Override void run(); static void main(String[] args); static void initStores(int storeCount, ServerSocket serverSocket); static void init(int storeCount); static Socket getStore(IRequest request); static Socket[] storeSockets; static HashString hashString; }