Package se.plushogskolan.cdi.services

Examples of se.plushogskolan.cdi.services.CarService


    assertEquals("Yesterays date", expectedDate, app.yesterdaysDate);
  }

  @Test
  public void testNormalCarService() {
    CarService carService = app.normalCarService;
    assertNotNull("NormalCarService is injected", carService);

    Car car = carService.getCar();
    assertEquals("Car is corrrect", "Mocked normal car", car.getName());
    assertEquals("Car owner is correct", "Hans Olsson", car.getOwner()
        .getName());
  }
View Full Code Here


        .getName());
  }

  @Test
  public void testSportCarService() {
    CarService carService = app.sportCarService;
    assertNotNull("SportCarService is injected", carService);

    Car car = carService.getCar();
    assertNotNull("Car is retrieved", car);
    assertEquals("Car owner is correct", "Hans von Sparre", car.getOwner()
        .getName());
  }
View Full Code Here

TOP

Related Classes of se.plushogskolan.cdi.services.CarService

Copyright © 2018 www.massapicom. 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.