Examples of Hardware


Examples of com.axemblr.provisionr.api.hardware.Hardware

            Rule.builder().anySource().tcp().port(22).createRule()
        ).addRules(
            formatPortsAsIngressRules()
        ).createNetwork();

        final Hardware hardware = Hardware.builder()
                .type(hardwareType)
                .blockDevices(parseBlockDeviceOptions(blockDeviceOptions))
                .createHardware();

        final Software software = Software.builder().packages(packages).createSoftware();
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

        assertBothWaysNormalized(map, expected, "map", "entry", "string[1]");
    }

    public void testMapCanContainCustomObjects() {
        Map map = new HashMap();
        map.put(new Software("microsoft", "windows"), new Hardware("x86", "p4"));

        xstream.alias("software", Software.class);
        xstream.alias("hardware", Hardware.class);

        String expected = "" +
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

            "    <arch>x86</arch>\n" +
            "    <name>p4</name>\n" +
            "  </v>\n" +
            "</java.util.Collections_-SingletonMap>";

        assertBothWays(Collections.singletonMap(new Software("microsoft", "windows"), new Hardware("x86", "p4")), expected);
    }
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

    public void testAllowsNamedFields() {
        ObjectWithNamedFields obj = new ObjectWithNamedFields();
        obj.name = "Joe";
        obj.number = 99;
        obj.someSoftware = new Software("tw", "xs");
        obj.polymorphic = new Hardware("small", "ipod");
        obj.nothing = null;

        xstream.alias("with-named-fields", ObjectWithNamedFields.class);
        xstream.alias("software", Software.class);
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

    public void testListsCanContainCustomObjects() {
        SampleLists lists = new SampleLists();
        lists.good.add(new Software("apache", "geronimo"));
        lists.good.add(new Software("caucho", "resin"));
        lists.good.add(new Hardware("risc", "strong-arm"));
        lists.bad.add(new Software("apache", "jserv"));

        xstream.alias("lists", SampleLists.class);
        xstream.alias("software", Software.class);
        xstream.alias("hardware", Hardware.class);
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

        xstream.alias("MEGA-sample", MegaSampleMaps.class);

        MegaSampleMaps sample = new MegaSampleMaps(); // subclass
        sample.good.put("Windows", new Software("Microsoft", "Windows"));
        sample.good.put("Linux", new Software("Red Hat", "Linux"));
        sample.other.put("i386", new Hardware("i386", "Intel"));
       
        String expected = "" +
                "<MEGA-sample>\n" +
                "  <software>\n" +
                "    <vendor>Microsoft</vendor>\n" +
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

        MegaSampleMaps sample = new MegaSampleMaps();
        sample.good.put("Windows", new Software("Microsoft", "Windows"));
        sample.good.put("Linux", new Software("Red Hat", "Linux"));
        sample.good.put("Chrome", new Software("Google", "Chrome"));
        sample.bad.put("iPhone", new Product("iPhone", "i", 399.99));
        sample.other.put("Intel", new Hardware("i386", "Intel"));
        sample.other.put("AMD", new Hardware("amd64", "AMD"));
       
        String expected = "" +
                "<MEGA-sample>\n" +
                "  <software>\n" +
                "    <vendor>Microsoft</vendor>\n" +
View Full Code Here

Examples of com.thoughtworks.acceptance.objects.Hardware

    public void testCollectsDifferentTypesWithFieldOfSameName() {
        SampleMaps sample = new SampleMaps();
        sample.good = new OrderRetainingMap();
        sample.good.put("iPhone", new Product("iPhone", "i", 399.99));
        sample.good.put("Linux", new Software("Red Hat", "Linux"));
        sample.good.put("Intel", new Hardware("i386", "Intel"));

        String expected = "" +
                "<sample>\n" +
                "  <product>\n" +
                "    <name>iPhone</name>\n" +
View Full Code Here

Examples of net.sf.cannagrower.data.Hardware

   */
  private void hardwareRemove() {
    if (!jListHardwares.isSelectionEmpty()) {
      try {
        for (Object object: jListHardwares.getSelectedValues()) {
          Hardware hardware=(Hardware)object;
          culture.getHardwares().unstore(hardware);
        }
      }
      catch(ArrayIndexOutOfBoundsException e) {}
      catch(IOException e){Messages.showException(e);}
View Full Code Here

Examples of org.apache.provisionr.api.hardware.Hardware

            .createAdminAccess();

        final Network network = Network.builder().addRules(
            Rule.builder().anySource().tcp().port(22).createRule()).createNetwork();

        final Hardware hardware = Hardware.builder().type(getProviderProperty("serviceOffering")).createHardware();
        final Software software = Software.builder()
            .imageId(getProviderProperty("templateId"))
            .createSoftware();

        Map<String, String> options = ImmutableMap.of(ProviderOptions.ZONE_ID,
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.