Examples of Car


Examples of org.springmodules.samples.jsr94.model.Car

  private void showListCars(List cars) {
    for(Iterator i=cars.iterator();i.hasNext();) {
      Object o=i.next();
      System.out.println("## o = "+o+" - "+Car.class.toString());
      Car car=(Car)o;
      System.out.println(" - goodBargain = "+car.isGoodBargain());
    }
  }
View Full Code Here

Examples of org.springmodules.samples.jsr94.model.Car

        return session.executeRules(cars);
      }
    });
    List goodBargainCars=new ArrayList();
    for(Iterator i=cars.iterator();i.hasNext();) {
      Car car=(Car)i.next();
      if( car.isGoodBargain() )
        goodBargainCars.add(car);
    }
    return goodBargainCars;
  }
View Full Code Here

Examples of org.switchyard.quickstarts.demo.txpropagation.Car

    }

    @Test
    public void rejectLowBallOffer() throws Exception {
        Car car = new Car();
        car.setPrice(500.00);
        Offer offer = new Offer();
        offer.setCar(car);
        offer.setAmount(100.00);

        Deal deal = service.operation("offer").sendInOut(offer).getContent(Deal.class);
View Full Code Here

Examples of org.switchyard.serial.jackson.JacksonSerializationData.Car

        doRun(SerializerFactory.create(format, CompressionType.GZIP, true), 8, true);
    }

    private void doRun(Serializer serializer, int spaces, boolean newline) throws Exception {
        //serializer.setPrettyPrint(true);
        Car car = new Car(new Person("Dave"));
        long start = System.currentTimeMillis();
        byte[] bytes = serializer.serialize(car, Car.class);
        //System.out.println(new String(bytes));
        car = serializer.deserialize(bytes, Car.class);
        long stop = System.currentTimeMillis();
        boolean debug = false; // toggle this is you're interested in performance
        if (debug) {
            StringBuilder sb = new StringBuilder();
            for (int i=0; i < spaces; i++) {
                sb.append(' ');
            }
            sb.append(serializer.getClass().getSimpleName());
            sb.append(": ");
            sb.append(bytes.length);
            sb.append(" bytes serialized and deserialized in ");
            sb.append(stop - start);
            sb.append(" milliseconds");
            if (newline) {
                sb.append("\n");
            }
            System.out.println(sb);
        }
        Assert.assertEquals("Dave", car.getDriver().getNickName());
    }
View Full Code Here

Examples of org.switchyard.serial.protostuff.ProtostuffSerializationData.Car

        doRun(SerializerFactory.create(format, CompressionType.GZIP, true), 8, true);
    }

    private void doRun(Serializer serializer, int spaces, boolean newline) throws Exception {
        //serializer.setPrettyPrint(true);
        Car car = new Car(new Person("Dave"));
        long start = System.currentTimeMillis();
        byte[] bytes = serializer.serialize(car, Car.class);
        //System.out.println(new String(bytes));
        car = serializer.deserialize(bytes, Car.class);
        long stop = System.currentTimeMillis();
        boolean debug = false; // toggle this is you're interested in performance
        if (debug) {
            StringBuilder sb = new StringBuilder();
            for (int i=0; i < spaces; i++) {
                sb.append(' ');
            }
            sb.append(serializer.getClass().getSimpleName());
            sb.append(": ");
            sb.append(bytes.length);
            sb.append(" bytes serialized and deserialized in ");
            sb.append(stop - start);
            sb.append(" milliseconds");
            if (newline) {
                sb.append("\n");
            }
            System.out.println(sb);
        }
        Assert.assertEquals("Dave", car.getDriver().getNickName());
    }
View Full Code Here

Examples of se.plushogskolan.cdi.model.Car

  public MockCarRepository() {
  }
 
  public Car getNormalCar() {
    return new Car("Mocked normal car");
  }
View Full Code Here

Examples of test.Car

import junit.framework.TestCase;
import test.Car;

public class Save4jTest extends TestCase {
  public void testSave4j() {
    Car car = new Car();
   
    Save4j.save(car);
  }
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.