You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2015/02/13 16:12:38 UTC

[18/18] syncope git commit: [SYNCOPE-641] Merge from master

[SYNCOPE-641] Merge from master


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/8671ee51
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/8671ee51
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/8671ee51

Branch: refs/heads/2_0_X
Commit: 8671ee51e7ab2abe77208725c8cadca936f3ea18
Parents: e7415a5
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Fri Feb 13 16:12:15 2015 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Fri Feb 13 16:12:15 2015 +0100

----------------------------------------------------------------------
 .../apache/syncope/client/ConcurrencyTest.java  | 71 --------------------
 1 file changed, 71 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/8671ee51/client/src/test/java/org/apache/syncope/client/ConcurrencyTest.java
----------------------------------------------------------------------
diff --git a/client/src/test/java/org/apache/syncope/client/ConcurrencyTest.java b/client/src/test/java/org/apache/syncope/client/ConcurrencyTest.java
deleted file mode 100644
index c7228c3..0000000
--- a/client/src/test/java/org/apache/syncope/client/ConcurrencyTest.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * 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.syncope.client;
-
-import static org.junit.Assert.fail;
-
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.common.services.ResourceService;
-import org.junit.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class ConcurrencyTest {
-
-    private static final Logger LOG = LoggerFactory.getLogger(ConcurrencyTest.class);
-
-    private static final SyncopeClient client =
-            new SyncopeClientFactoryBean().setAddress("http://url").create("username", "password");
-
-    @Test
-    public void multiThreadTest()
-            throws InterruptedException {
-
-        for (int i = 0; i < 10000; i++) {
-            Thread execution = new Thread("Th-" + StringUtils.leftPad(String.valueOf(i), 5, '0')) {
-
-                @Override
-                public void run() {
-
-                    try {
-                        client.getService(ResourceService.class);
-
-                        LOG.info(getName() + " completed successfully!");
-                    } catch (Exception e) {
-                        LOG.error(getName() + " did not complete", e);
-                    }
-                }
-            };
-            execution.start();
-        }
-
-        Thread.sleep(10000);
-    }
-
-    @Test
-    public void multiCallTest() {
-        try {
-            for (int i = 0; i < 10000; i++) {
-                client.getService(ResourceService.class);
-            }
-        } catch (Exception e) {
-            fail(e.getMessage());
-        }
-    }
-}