You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/05/01 11:19:43 UTC
svn commit: r770596 -
/ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/test/AuthorizationTests.java
Author: lektran
Date: Fri May 1 09:19:43 2009
New Revision: 770596
URL: http://svn.apache.org/viewvc?rev=770596&view=rev
Log:
Removed unnecessary delegator since a test delegator is provided by the parent class. I need to make it final so this
doesn't happen but JUnit instantiates the object so I can't do it without extending their class. It's on my todo list.
Modified:
ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/test/AuthorizationTests.java
Modified: ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/test/AuthorizationTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/test/AuthorizationTests.java?rev=770596&r1=770595&r2=770596&view=diff
==============================================================================
--- ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/test/AuthorizationTests.java (original)
+++ ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/test/AuthorizationTests.java Fri May 1 09:19:43 2009
@@ -3,7 +3,6 @@
import java.util.Map;
import org.ofbiz.base.util.Debug;
-import org.ofbiz.entity.GenericDelegator;
import org.ofbiz.security.SecurityConfigurationException;
import org.ofbiz.security.authz.Authorization;
import org.ofbiz.security.authz.AuthorizationFactory;
@@ -12,12 +11,10 @@
public class AuthorizationTests extends OFBizTestCase {
private static final String module = AuthorizationTests.class.getName();
- protected GenericDelegator delegator;
protected Authorization security;
public AuthorizationTests(String name) throws SecurityConfigurationException {
super(name);
- delegator = GenericDelegator.getGenericDelegator("default");
security = AuthorizationFactory.getInstance(delegator);
}