• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Stay sane. Test for real.
 

Stay sane. Test for real.

on

  • 496 views

 

Statistics

Views

Total Views
496
Views on SlideShare
258
Embed Views
238

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 238

http://jeeconf.com 238

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Stay sane. Test for real. Stay sane. Test for real. Presentation Transcript

    • Bartosz MajsakCambridge Technology PartnersJEEConf, Київ 2013Stay sane. Test for real
    • [bmajsak@jeeconf2013 ~]$ whoamitwitter: @majsongithub: bartoszmajsakgmail: bartosz.majsak@gmail.com
    • *
    • *
    • *Integration
    • *Containers
    • *Deployment
    • Alt+Shift+X, TAlt+Shift+X, N
    • public class FluidOunceConverterTestCase {@Deploymentpublic static JavaArchive createDeployment() {return ShrinkWrap.create(JavaArchive.class, "test.jar").addClasses(FluidOunceConverter.class,FluidOunceConverterBean.class);}FluidOunceConverter converter;@Testpublic void shouldConvertFluidOuncesToMillilitres() {// givendouble ouncesToConvert = 8d;double expectedMillilitres = 236.588237d;// whendouble ouncesInMl = converter.convertToMillilitres(ouncesToConvert);// thenassertThat(ouncesInMl).isEqualTo(expectedMillilitres);}}
    • @RunWith(Arquillian.class)public class FluidOunceConverterTestCase {@Deploymentpublic static JavaArchive createDeployment() {return ShrinkWrap.create(JavaArchive.class, "test.jar").addClasses(FluidOunceConverter.class,FluidOunceConverterBean.class);}@InjectFluidOunceConverter converter;@Testpublic void shouldConvertFluidOuncesToMillilitres() {// givendouble ouncesToConvert = 8d;double expectedMillilitres = 236.588237d;// whendouble ouncesInMl = converter.convertToMillilitres(ouncesToConvert);// thenassertThat(ouncesInMl).isEqualTo(expectedMillilitres);}}
    • *
    • *
    • Scenario “Finding all Ukrainian beers”Given “Im on the main page”When “I enter from Ukraine as search criteria”Then “I should see [pull requests are welcome!]”
    • *
    • The Known UniverseArquillianPersistenceWarpDroneSpock
    • The Unknown UniverseArquillianJBehaveCucumberGrapheneAndroidTransactionBytemanJacocoPerformanceRecordingForge
    • http://arquillian.orghttp://github.com/arquillian+Arquillianirc://freenode.net/#jbosstesting