Examples of LocationImpl


Examples of org.jclouds.domain.internal.LocationImpl

   
    ServiceFactory factory = mock(ServiceFactory.class);
    Service service = mock(Service.class);
    when(factory.create((String) any())).thenReturn(service);
    NodeMetadata node1 = new NodeMetadataImpl(null, "name1", "id1",
        new LocationImpl(LocationScope.PROVIDER, "location-id1",
            "location-desc1", null),
        null, Collections.<String,String>emptyMap(), null, null, "image-id",
        null, NodeState.RUNNING,
        Lists.newArrayList("100.0.0.1"),
        Lists.newArrayList("10.0.0.1"), null);
    NodeMetadata node2 = new NodeMetadataImpl(null, "name2", "id2",
        new LocationImpl(LocationScope.PROVIDER, "location-id2",
            "location-desc2", null),
        null, Collections.<String,String>emptyMap(), null, null, "image-id",
        null, NodeState.RUNNING,
        Lists.newArrayList("100.0.0.2"),
        Lists.newArrayList("10.0.0.2"), null);
View Full Code Here

Examples of org.lilyproject.util.location.LocationImpl

                return conf;
            }
        }

        if (create) {
            return new ConfImpl(name, new LocationImpl(null,
                    "<generated>" + location.getURI(), location.getLineNumber(), location.getColumnNumber()));
        } else {
            return null;
        }
    }
View Full Code Here

Examples of org.mockito.internal.debugging.LocationImpl

        if (defaultReturnValue != null) {
            return defaultReturnValue;
        }
        Class<?> type = invocation.getMethod().getReturnType();
        if (!type.isPrimitive() && !Modifier.isFinal(type.getModifiers())) {
            final Location location = new LocationImpl();
            return Mockito.mock(type, new ThrowsSmartNullPointer(invocation, location));
        }
        return null;
    }
View Full Code Here

Examples of pdp.scrabble.game.impl.LocationImpl

  model.update(board);
  allowedLetters[Direction.ACROSS.ordinal()].compute(Direction.DOWN);
  allowedLetters[Direction.DOWN.ordinal()].compute(Direction.ACROSS);

  if (model.isFree(Board.HORI_DIM/2, Board.VERT_DIM/2)) { // cas du premier coup : le centre est vide et doit etre couvert par le coup
      Location start = new LocationImpl(Board.HORI_DIM/2, Board.VERT_DIM/2);
      generateForSquare(Direction.ACROSS, start, model, letters);
      generateForSquare(Direction.DOWN, start, model, letters);
  }
  else {
      generate(Direction.ACROSS,letters);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.