You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/06/22 19:35:53 UTC
svn commit: r416426 -
/james/server/trunk/src/test/org/apache/james/transport/matchers/SMTPAuthSuccessfulTest.java
Author: norman
Date: Thu Jun 22 10:35:53 2006
New Revision: 416426
URL: http://svn.apache.org/viewvc?rev=416426&view=rev
Log:
Add junit test for SMTPAuthSuccessful matcher
Added:
james/server/trunk/src/test/org/apache/james/transport/matchers/SMTPAuthSuccessfulTest.java
Added: james/server/trunk/src/test/org/apache/james/transport/matchers/SMTPAuthSuccessfulTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/transport/matchers/SMTPAuthSuccessfulTest.java?rev=416426&view=auto
==============================================================================
--- james/server/trunk/src/test/org/apache/james/transport/matchers/SMTPAuthSuccessfulTest.java (added)
+++ james/server/trunk/src/test/org/apache/james/transport/matchers/SMTPAuthSuccessfulTest.java Thu Jun 22 10:35:53 2006
@@ -0,0 +1,44 @@
+/***********************************************************************
+ * Copyright (c) 2006 The Apache Software Foundation. *
+ * All rights reserved. *
+ * ------------------------------------------------------------------- *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you *
+ * may not use this file except in compliance with the License. You *
+ * may obtain a copy of the License at: *
+ * *
+ * http://www.apache.org/licenses/LICENSE-2.0 *
+ * *
+ * Unless required by applicable law or agreed to in writing, software *
+ * distributed under the License is distributed on an "AS IS" BASIS, *
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or *
+ * implied. See the License for the specific language governing *
+ * permissions and limitations under the License. *
+ ***********************************************************************/
+
+package org.apache.james.transport.matchers;
+
+import org.apache.mailet.GenericMatcher;
+
+public class SMTPAuthSuccessfulTest extends AbstractHasMailAttributeTest {
+
+ private final String SMTP_AUTH_USER_ATTRIBUTE_NAME = "org.apache.james.SMTPAuthUser";
+
+ protected String getHasMailAttribute() {
+ return "";
+ }
+
+ protected GenericMatcher createMatcher() {
+ return new SMTPAuthSuccessful();
+ }
+
+ protected String getConfigOption() {
+
+ return "SMTPAuthSuccessful";
+ }
+
+ protected void init() {
+ super.init();
+ setMailAttributeName(SMTP_AUTH_USER_ATTRIBUTE_NAME);
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org