Return-Path: Delivered-To: apmail-incubator-amber-commits-archive@minotaur.apache.org Received: (qmail 83547 invoked from network); 18 Dec 2010 16:14:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Dec 2010 16:14:32 -0000 Received: (qmail 72682 invoked by uid 500); 18 Dec 2010 16:14:32 -0000 Delivered-To: apmail-incubator-amber-commits-archive@incubator.apache.org Received: (qmail 72665 invoked by uid 500); 18 Dec 2010 16:14:32 -0000 Mailing-List: contact amber-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: amber-dev@incubator.apache.org Delivered-To: mailing list amber-commits@incubator.apache.org Received: (qmail 72658 invoked by uid 99); 18 Dec 2010 16:14:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 16:14:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 16:14:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 995A52388A43; Sat, 18 Dec 2010 16:14:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1050659 [2/2] - in /incubator/amber/trunk/oauth-2.0/oauth2-client: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/amber/ src/main/java/org/apache/amber/oauth2/ src/main/java/org/apach... Date: Sat, 18 Dec 2010 16:14:06 -0000 To: amber-commits@incubator.apache.org From: tommaso@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101218161406.995A52388A43@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthClientResponseFactoryTest.java URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthClientResponseFactoryTest.java?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthClientResponseFactoryTest.java (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthClientResponseFactoryTest.java Sat Dec 18 16:14:04 2010 @@ -0,0 +1,56 @@ +/** + * Copyright 2010 Newcastle University + * + * http://research.ncl.ac.uk/smart/ + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.amber.oauth2.client.response; + +import org.apache.amber.oauth2.client.response.OAuthClientResponse; +import org.apache.amber.oauth2.client.response.OAuthClientResponseFactory; +import org.junit.Assert; +import org.junit.Test; +import org.apache.amber.oauth2.common.OAuth; + + +/** + * @author Maciej Machulak (m.p.machulak@ncl.ac.uk) + * @author Lukasz Moren (lukasz.moren@ncl.ac.uk) + * @author Aad van Moorsel (aad.vanmoorsel@ncl.ac.uk) + */ +public class OAuthClientResponseFactoryTest { + + @Test + public void testCreateGitHubTokenResponse() throws Exception { + OAuthClientResponse gitHubTokenResponse = OAuthClientResponseFactory + .createGitHubTokenResponse("access_token=123", OAuth.ContentType.URL_ENCODED, 200); + Assert.assertNotNull(gitHubTokenResponse); + } + + @Test + public void testCreateJSONTokenResponse() throws Exception { + OAuthClientResponse jsonTokenResponse = OAuthClientResponseFactory + .createJSONTokenResponse("{'access_token':'123'}", OAuth.ContentType.JSON, 200); + Assert.assertNotNull(jsonTokenResponse); + } + + @Test + public void testCreateCustomResponse() throws Exception { + + } +} Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthClientResponseFactoryTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthJSONAccessTokenResponseTest.java URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthJSONAccessTokenResponseTest.java?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthJSONAccessTokenResponseTest.java (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthJSONAccessTokenResponseTest.java Sat Dec 18 16:14:04 2010 @@ -0,0 +1,166 @@ +/** + * Copyright 2010 Newcastle University + * + * http://research.ncl.ac.uk/smart/ + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.amber.oauth2.client.response; + +import org.apache.amber.oauth2.client.utils.TestUtils; +import org.apache.amber.oauth2.common.OAuth; +import org.apache.amber.oauth2.common.exception.OAuthProblemException; +import org.junit.Assert; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.apache.amber.oauth2.common.error.OAuthError; + +/** + * @author Maciej Machulak (m.p.machulak@ncl.ac.uk) + * @author Lukasz Moren (lukasz.moren@ncl.ac.uk) + * @author Aad van Moorsel (aad.vanmoorsel@ncl.ac.uk) + */ +public class OAuthJSONAccessTokenResponseTest extends Assert { + + Logger logger = LoggerFactory.getLogger(OAuthJSONAccessTokenResponse.class); + + @Test + public void testGetAccessToken() throws Exception { + logger.info("Running test: testGetAccessToken " + this.getClass().getName()); + OAuthJSONAccessTokenResponse r = null; + try { + r = new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.VALID_JSON_RESPONSE, + OAuth.ContentType.JSON, 200); + } catch (OAuthProblemException e) { + fail("Exception not expected"); + } + + Assert.assertEquals(TestUtils.ACCESS_TOKEN, r.getAccessToken()); + + try { + r = new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.ERROR_JSON_BODY, + OAuth.ContentType.JSON, 200); + fail("Exception expected"); + } catch (OAuthProblemException e) { + Assert.assertNotNull(e.getError()); + } + } + + @Test + public void testGetExpiresIn() throws Exception { + OAuthJSONAccessTokenResponse r = null; + + try { + r = new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.VALID_JSON_RESPONSE, + OAuth.ContentType.JSON, 200); + } catch (OAuthProblemException e) { + fail("Exception not expected"); + } + + Assert.assertEquals(TestUtils.EXPIRES_IN, r.getExpiresIn()); + + try { + new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.ERROR_JSON_BODY, + OAuth.ContentType.JSON, 200); + fail("Exception expected"); + } catch (OAuthProblemException e) { + Assert.assertNotNull(e.getError()); + } + } + + @Test + public void testGetScope() throws Exception { + OAuthJSONAccessTokenResponse r = null; + try { + r = new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.VALID_JSON_RESPONSE, + OAuth.ContentType.JSON, 200); + } catch (OAuthProblemException e) { + fail("Exception not expected"); + } + + Assert.assertEquals(TestUtils.SCOPE, r.getScope()); + + try { + new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.ERROR_JSON_BODY, + OAuth.ContentType.JSON, 200); + fail("Exception expected"); + } catch (OAuthProblemException e) { + Assert.assertNotNull(e.getError()); + + } + } + + @Test + public void testGetRefreshToken() throws Exception { + OAuthJSONAccessTokenResponse r = null; + try { + r = new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.VALID_JSON_RESPONSE, + OAuth.ContentType.JSON, 200); + } catch (OAuthProblemException e) { + fail("Exception not expected"); + } + + Assert.assertEquals(TestUtils.REFRESH_TOKEN, r.getRefreshToken()); + + try { + new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.ERROR_JSON_BODY, + OAuth.ContentType.JSON, 200); + fail("Exception expected"); + } catch (OAuthProblemException e) { + Assert.assertNotNull(e.getError()); + } + } + + @Test + public void testSetBody() throws Exception { + + OAuthJSONAccessTokenResponse r = null; + try { + r = new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.VALID_JSON_RESPONSE, + OAuth.ContentType.JSON, 200); + } catch (OAuthProblemException e) { + fail("Exception not expected"); + } + + String accessToken = r.getAccessToken(); + String expiresIn = r.getExpiresIn(); + + Assert.assertEquals(TestUtils.EXPIRES_IN, expiresIn); + Assert.assertEquals(TestUtils.ACCESS_TOKEN, accessToken); + + try { + new OAuthJSONAccessTokenResponse(); + r.init(TestUtils.ERROR_JSON_BODY, + OAuth.ContentType.JSON, 200); + fail("Exception expected"); + } catch (OAuthProblemException e) { + Assert.assertEquals(OAuthError.TokenResponse.INVALID_REQUEST, e.getError()); + } + + + } +} Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/response/OAuthJSONAccessTokenResponseTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/utils/TestUtils.java URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/utils/TestUtils.java?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/utils/TestUtils.java (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/utils/TestUtils.java Sat Dec 18 16:14:04 2010 @@ -0,0 +1,64 @@ +/** + * Copyright 2010 Newcastle University + * + * http://research.ncl.ac.uk/smart/ + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.amber.oauth2.client.utils; + +import javax.servlet.http.HttpServletRequest; + +import org.apache.amber.oauth2.common.error.OAuthError; + +import static org.easymock.EasyMock.expect; + + +/** + * @author Maciej Machulak (m.p.machulak@ncl.ac.uk) + * @author Lukasz Moren (lukasz.moren@ncl.ac.uk) + * @author Aad van Moorsel (aad.vanmoorsel@ncl.ac.uk) + */ +public final class TestUtils { + private TestUtils() { + } + + public static final String VALID_JSON_RESPONSE + = "{\"expires_in\":3600,\"access_token\":\"b52d434791fd52316232b6cf2d3\",\"scope\":\"read\"," + + "\"refresh_token\":\"test_refresh_token\"}"; + + public static final String EXPIRES_IN = "3600"; + public static final String ACCESS_TOKEN = "b52d434791fd52316232b6cf2d3"; + public static final String SCOPE = "read"; + public static final String REFRESH_TOKEN = "test_refresh_token"; + + public static final String ERROR_JSON_BODY + = "{\"error_uri\":\"null\",\"error\":\"invalid_request\",\"state\":\"null\",\"error_description\":" + + "\"Invalid grant_type parameter value\"}"; + + public static final String INVALID_JSON + = "\"expires_in\":3600,\"access_token\":\"b52d434791fd52316232b6cf2d3\"}"; + +// public static final String + + public static void expectNoErrorParameters(HttpServletRequest request) { + expect(request.getParameter(OAuthError.OAUTH_ERROR)) + .andStubReturn(null); + expect(request.getParameter(OAuthError.OAUTH_ERROR_DESCRIPTION)).andStubReturn(null); + expect(request.getParameter(OAuthError.OAUTH_ERROR_URI)).andStubReturn(null); + } +} Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/utils/TestUtils.java ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeTokenValidatorTest.java URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeTokenValidatorTest.java?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeTokenValidatorTest.java (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeTokenValidatorTest.java Sat Dec 18 16:14:04 2010 @@ -0,0 +1,51 @@ +/** + * Copyright 2010 Newcastle University + * + * http://research.ncl.ac.uk/smart/ + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.amber.oauth2.client.validator; + +import org.apache.amber.oauth2.client.validator.CodeTokenValidator; +import org.apache.amber.oauth2.client.validator.OAuthClientValidator; +import org.apache.amber.oauth2.common.OAuth; +import org.junit.Assert; +import org.junit.Test; + + +/** + * @author Maciej Machulak (m.p.machulak@ncl.ac.uk) + * @author Lukasz Moren (lukasz.moren@ncl.ac.uk) + * @author Aad van Moorsel (aad.vanmoorsel@ncl.ac.uk) + */ +public class CodeTokenValidatorTest { + + + @Test + public void testValidator() { + + OAuthClientValidator validator = new CodeTokenValidator(); + Assert.assertNotNull(validator.requiredParams); + Assert.assertEquals(2, validator.requiredParams.size()); + Assert.assertArrayEquals(new String[] {}, validator.requiredParams.get(OAuth.OAUTH_CODE)); + Assert.assertArrayEquals(new String[] {}, validator.requiredParams.get(OAuth.OAUTH_ACCESS_TOKEN)); + Assert.assertNotNull(validator.notAllowedParams); + Assert.assertEquals(1, validator.notAllowedParams.size()); + Assert.assertTrue(validator.notAllowedParams.contains(OAuth.OAUTH_ACCESS_TOKEN)); + } +} Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeTokenValidatorTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeValidatorTest.java URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeValidatorTest.java?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeValidatorTest.java (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeValidatorTest.java Sat Dec 18 16:14:04 2010 @@ -0,0 +1,50 @@ +/** + * Copyright 2010 Newcastle University + * + * http://research.ncl.ac.uk/smart/ + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.amber.oauth2.client.validator; + +import org.apache.amber.oauth2.client.validator.CodeValidator; +import org.apache.amber.oauth2.client.validator.OAuthClientValidator; +import org.junit.Assert; +import org.junit.Test; +import org.apache.amber.oauth2.common.OAuth; + +/** + * @author Maciej Machulak (m.p.machulak@ncl.ac.uk) + * @author Lukasz Moren (lukasz.moren@ncl.ac.uk) + * @author Aad van Moorsel (aad.vanmoorsel@ncl.ac.uk) + */ +public class CodeValidatorTest { + + @Test + public void testValidator() { + + OAuthClientValidator validator = new CodeValidator(); + Assert.assertNotNull(validator.requiredParams); + Assert.assertEquals(1, validator.requiredParams.size()); + Assert.assertArrayEquals(new String[] {}, validator.requiredParams.get(OAuth.OAUTH_CODE)); + Assert.assertNotNull(validator.notAllowedParams); + Assert.assertEquals(2, validator.notAllowedParams.size()); + Assert.assertTrue(validator.notAllowedParams.contains(OAuth.OAUTH_ACCESS_TOKEN)); + Assert.assertTrue(validator.notAllowedParams.contains(OAuth.OAUTH_EXPIRES_IN)); + } + +} Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/CodeValidatorTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/TokenValidatorTest.java URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/TokenValidatorTest.java?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/TokenValidatorTest.java (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/TokenValidatorTest.java Sat Dec 18 16:14:04 2010 @@ -0,0 +1,50 @@ +/** + * Copyright 2010 Newcastle University + * + * http://research.ncl.ac.uk/smart/ + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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.amber.oauth2.client.validator; + +import org.apache.amber.oauth2.client.validator.OAuthClientValidator; +import org.apache.amber.oauth2.client.validator.TokenValidator; +import org.junit.Assert; +import org.junit.Test; +import org.apache.amber.oauth2.common.OAuth; + + +/** + * @author Maciej Machulak (m.p.machulak@ncl.ac.uk) + * @author Lukasz Moren (lukasz.moren@ncl.ac.uk) + * @author Aad van Moorsel (aad.vanmoorsel@ncl.ac.uk) + */ +public class TokenValidatorTest { + + @Test + public void testValidator() { + + OAuthClientValidator validator = new TokenValidator(); + Assert.assertNotNull(validator.requiredParams); + Assert.assertEquals(1, validator.requiredParams.size()); + Assert.assertArrayEquals(new String[] {}, validator.requiredParams.get(OAuth.OAUTH_ACCESS_TOKEN)); + Assert.assertNotNull(validator.notAllowedParams); + Assert.assertEquals(1, validator.notAllowedParams.size()); + Assert.assertTrue(validator.notAllowedParams.contains(OAuth.OAUTH_CODE)); + } + +} Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/java/org/apache/amber/oauth2/client/validator/TokenValidatorTest.java ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/resources/log4j.properties URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/resources/log4j.properties?rev=1050659&view=auto ============================================================================== --- incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/resources/log4j.properties (added) +++ incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/resources/log4j.properties Sat Dec 18 16:14:04 2010 @@ -0,0 +1,29 @@ +# +# Copyright 2010 Newcastle University +# +# http://research.ncl.ac.uk/smart/ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You 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. +# + +log4j.rootCategory=INFO, CONSOLE + +# CONSOLE is set to be a ConsoleAppender using a PatternLayout. +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=[%d{yyyy-mm-dd hh:mm:ss.S},%6.6r]%-5p[%t]%x(%F:%L) - %m%n + +#log4j.logger.org.hibernate.search=TRACE \ No newline at end of file Propchange: incubator/amber/trunk/oauth-2.0/oauth2-client/src/test/resources/log4j.properties ------------------------------------------------------------------------------ svn:eol-style = native