/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/command/ |
StaticReplyCommandHandler.java | 23 * returned reply code by setting the required <code>replyCode</code> property. If only the
24 * <code>replyCode</code> property is set, then the default reply text corresponding to that
43 * Create a new instance with the specified replyCode
44 * @param replyCode - the replyCode to use
45 * @throws AssertFailedException - if the replyCode is null
47 public StaticReplyCommandHandler(int replyCode) {
48 setReplyCode(replyCode);
52 * Create a new instance with the specified replyCode and replyText
53 * @param replyCode - the replyCode to use [all...] |
AbstractStaticReplyCommandHandler.java | 23 * code by setting the required <code>replyCode</code> property. If only the
24 * <code>replyCode</code> property is set, then the default reply text corresponding to that
38 protected int replyCode = 0;
41 // the replyCode.
51 * @param replyCode - the replyCode
53 * @throws org.mockftpserver.core.util.AssertFailedException - if the replyCode is not valid
55 public void setReplyCode(int replyCode) {
56 assertValidReplyCode(replyCode);
57 this.replyCode = replyCode; [all...] |
AbstractCommandHandler.java | 81 * @param replyCode - the reply code to check
83 * - if the replyCode is invalid
85 protected void assertValidReplyCode(int replyCode) {
86 Assert.isTrue(replyCode > 0, "The number [" + replyCode + "] is not a valid reply code");
|
AbstractTrackingCommandHandler.java | 90 * The reply code is designated by the <code>replyCode</code> property, and the reply text
103 * @param replyCode - the reply code
112 protected void sendReply(Session session, int replyCode, String replyMessageKey, String replyText,
116 assertValidReplyCode(replyCode);
118 String key = (replyMessageKey != null) ? replyMessageKey : Integer.toString(replyCode);
119 String text = getTextForReplyCode(replyCode, key, replyText, arguments);
121 LOG.info("Sending reply [" + replyCode + replyTextToLog + "]");
122 session.sendReply(replyCode, text);
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/stub/command/ |
AbstractStubCommandHandler.java | 36 protected int replyCode = 0;
39 // the replyCode.
49 * @param replyCode - the replyCode
51 * @throws AssertFailedException - if the replyCode is not valid
53 public void setReplyCode(int replyCode) {
54 assertValidReplyCode(replyCode);
55 this.replyCode = replyCode;
59 * Set the reply text. If null, then use the (default) message key for the replyCode. [all...] |
StatCommandHandler.java | 52 // Do not initialize replyCode -- will be set dynamically
62 // Only use dynamic reply code if the replyCode property was NOT explicitly set
63 if (replyCode == 0) {
|
UserCommandHandler.java | 52 // Do not initialize replyCode -- will be set dynamically
62 // Only use dynamic reply code if the replyCode property was NOT explicitly set
63 if (replyCode == 0) {
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/command/ |
StaticReplyCommandHandler.java | 24 * returned reply code by setting the required <code>replyCode</code> property. If only the
25 * <code>replyCode</code> property is set, then the default reply text corresponding to that
44 * Create a new instance with the specified replyCode
45 * @param replyCode - the replyCode to use
46 * @throws AssertFailedException - if the replyCode is null
48 public StaticReplyCommandHandler(int replyCode) {
49 setReplyCode(replyCode);
53 * Create a new instance with the specified replyCode and replyText
54 * @param replyCode - the replyCode to use [all...] |
AbstractCommandHandler.java | 117 * The reply code is designated by the <code>replyCode</code> property, and the reply text
130 * @param replyCode - the reply code
141 protected void sendReply(Session session, int replyCode, String replyMessageKey, String replyText,
145 assertValidReplyCode(replyCode);
148 String key = (replyMessageKey != null) ? replyMessageKey : Integer.toString(replyCode);
149 String text = getTextForReplyCode(replyCode, key, replyText, arguments);
151 HANDLER_LOG.debug("Sending reply [" + replyCode + replyTextToLog + "]");
152 session.sendReply(replyCode, text);
171 * @param replyCode - the reply code to check
173 * @throws AssertFailedException - if the replyCode is invalid [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AbstractFakeCommandHandler.java | 120 * The reply code is designated by the <code>replyCode</code> property, and the reply text
124 * @param replyCode - the reply code
129 protected void sendReply(Session session, int replyCode, String messageKey) {
130 sendReply(session, replyCode, messageKey, Collections.EMPTY_LIST);
136 * The reply code is designated by the <code>replyCode</code> property, and the reply text
140 * @param replyCode - the reply code
146 protected void sendReply(Session session, int replyCode, String messageKey, List args) {
148 assertValidReplyCode(replyCode);
155 LOG.info("Sending reply [" + replyCode + replyTextToLog + "]" + argsToLog);
156 session.sendReply(replyCode, replyText); [all...] |
PassCommandHandler.java | 46 int replyCode = (userAccount.isAccountRequiredForLogin()) ? ReplyCodes.PASS_NEED_ACCOUNT : ReplyCodes.PASS_OK;
48 login(userAccount, session, replyCode, replyMessageKey);
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/command/ |
AbstractCommandHandlerTestCase.java | 181 * @param replyCode - the reply code
184 protected String replyTextFor(int replyCode) {
185 return "Reply for " + replyCode;
191 * @param replyCode - the reply code
194 protected String replyTextWithParameterFor(int replyCode) {
195 return "Reply for " + replyCode + ":{0}";
211 * @param replyCode - the reply code
215 protected String formattedReplyTextFor(int replyCode, Object parameter) {
216 return MessageFormat.format(replyTextWithParameterFor(replyCode), objArray(parameter));
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/command/ |
AbstractCommandHandlerTest.java | 186 * @param replyCode - the reply code
189 protected String replyTextFor(int replyCode) {
190 return "Reply for " + replyCode;
195 * @param replyCode - the reply code
198 protected String replyTextWithParameterFor(int replyCode) {
199 return "Reply for " + replyCode + ":{0}";
213 * @param replyCode - the reply code
217 protected String formattedReplyTextFor(int replyCode, Object parameter) {
218 return MessageFormat.format(replyTextWithParameterFor(replyCode), objArray(parameter));
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/session/ |
Session.java | 38 * @param replyCode - the reply code
41 public void sendReply(int replyCode, String replyText);
|
DefaultSession.java | 428 * @param replyCode - the reply code to check
430 private void assertValidReplyCode(int replyCode) {
431 Assert.isTrue(replyCode > 0, "The number [" + replyCode + "] is not a valid reply code");
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/core/session/ |
StubSession.groovy | 123 public void sendReply(int replyCode, String replyText) {
124 sentReplies << [replyCode, replyText]
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/session/ |
Session.java | 38 * @param replyCode - the reply code
41 public void sendReply(int replyCode, String replyText);
|
DefaultSession.java | 422 * @param replyCode - the reply code to check
424 private void assertValidReplyCode(int replyCode) {
425 Assert.isTrue(replyCode > 0, "The number [" + replyCode + "] is not a valid reply code");
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
StatCommandHandler.java | 50 // Do not initialize replyCode -- will be set dynamically
57 // Only use dynamic reply code if the replyCode property was NOT explicitly set
58 if (replyCode == 0) {
|
UserCommandHandler.java | 47 // Do not initialize replyCode -- will be set dynamically
56 // Only use dynamic reply code if the replyCode property was NOT explicitly set
57 if (replyCode == 0) {
|
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/ |
StubFtpServerIntegrationTest.java | 87 int replyCode = ftpClient.acct("123456");
88 assertEquals("acct", 230, replyCode);
318 int replyCode = ftpClient.rest("marker");
319 assertEquals("Unable to REST", 350, replyCode);
482 int replyCode = ftpClient.site("parameters,1,2,3");
483 assertEquals("SITE", 200, replyCode);
571 int replyCode = ftpClient.getReplyCode();
572 LOG.info("Reply: operation=\"" + operation + "\" replyCode=" + replyCode);
573 assertEquals("Unexpected replyCode for " + operation, expectedReplyCode, replyCode); [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/ |
StubFtpServerIntegrationTest.java | 102 int replyCode = ftpClient.acct("123456");
103 assertEquals("acct", 230, replyCode);
335 int replyCode = ftpClient.rest("marker");
336 assertEquals("Unable to REST", 350, replyCode);
532 int replyCode = ftpClient.site("parameters,1,2,3");
533 assertEquals("SITE", 200, replyCode);
619 int replyCode = ftpClient.getReplyCode();
620 LOG.info("Reply: operation=\"" + operation + "\" replyCode=" + replyCode);
621 assertEquals("Unexpected replyCode for " + operation, expectedReplyCode, replyCode); [all...] |
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
AbstractFakeCommandHandlerTestCase.groovy | 190 replyCodes.eachWithIndex {replyCode, replyIndex -> 191 assertSessionReply(replyIndex, replyCode)
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/ |
FakeFtpServerIntegrationTest.groovy | 498 int replyCode = ftpClient.getReplyCode()
499 LOG.info("Reply: operation=\"" + operation + "\" replyCode=" + replyCode)
500 assertEquals("Unexpected replyCode for " + operation, expectedReplyCode, replyCode)
|
/prebuilts/misc/common/robolectric/android-all/ |
android-all-6.0.1_r3-robolectric-0.jar | |