java.util.Arrays.asList-s



API Populatity

84 Client projects

Project: java

Package: java.util

Project gocd/gocd in file ...ks.go.plugin.infra.FelixGoPluginOSGiFramework.java (2014-12-03)
@@ -42,6 +42,7 @@ import java.util.List;
 import java.util.ServiceLoader;
 import java.util.concurrent.ConcurrentLinkedQueue;
 
+import static java.util.Arrays.asList;
 import static org.apache.commons.collections.CollectionUtils.forAllDo;
 
 @Component
@@ -110,6 +111,7 @@ public class FelixGoPluginOSGiFramework implements GoPluginOSGiFramework {
             forAllDo(pluginChangeListeners, notifyPluginLoadedEvent(pluginDescriptor));
             return bundle;
         } catch (Exception e) {
+            pluginDescriptor.markAsInvalid(asList(e.getMessage()), e);
             LOGGER.error("Failed to load plugin: " + bundleLocation,e);
             stopAndUninstallBundle(bundle, bundleLocation);
             throw new RuntimeException("Failed to load plugin: " + bundleLocation, e);
Project neo4j/neo4j in file ...ava.org.neo4j.graphalgo.path.TestShortestPath.java (2011-07-24)
@@ -20,6 +20,7 @@
 package org.neo4j.graphalgo.path;
 
 import static common.SimpleGraphBuilder.KEY_ID;
+import static java.util.Arrays.asList;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.fail;
 import static org.neo4j.graphalgo.GraphAlgoFactory.shortestPath;
@@ -71,6 +72,7 @@ public class TestShortestPath extends Neo4jAlgoTestCase
         PathFinder<Path> finder = instantiatePathFinder( 1 );
         Iterable<Path> paths = finder.findAllPaths( graph.getNode( "s" ), graph.getNode( "t" ) );
         assertPaths( paths, "s,t", "s,t" );
+        assertPaths( asList( finder.findSinglePath( graph.getNode( "s" ), graph.getNode( "t" ) ) ), "s,t" );
     }
     
     @Test
Project xamarin/XobotOS in file ...ks.go.plugin.infra.FelixGoPluginOSGiFramework.java (2014-12-03)
@@ -42,6 +42,7 @@ import java.util.List;
 import java.util.ServiceLoader;
 import java.util.concurrent.ConcurrentLinkedQueue;
 
+import static java.util.Arrays.asList;
 import static org.apache.commons.collections.CollectionUtils.forAllDo;
 
 @Component
@@ -110,6 +111,7 @@ public class FelixGoPluginOSGiFramework implements GoPluginOSGiFramework {
             forAllDo(pluginChangeListeners, notifyPluginLoadedEvent(pluginDescriptor));
             return bundle;
         } catch (Exception e) {
+            pluginDescriptor.markAsInvalid(asList(e.getMessage()), e);
             LOGGER.error("Failed to load plugin: " + bundleLocation,e);
             stopAndUninstallBundle(bundle, bundleLocation);
             throw new RuntimeException("Failed to load plugin: " + bundleLocation, e);