Package com.csam.stubs.bdd

Examples of com.csam.stubs.bdd.Test


    }
   
    @Override public void prepare() {
        describe(ProjectsService.class,
                new When("requesting") {{
                    it("should return the correct path", new Test() {
                        @Override public void run() throws Throwable {
                            ProjectsService svc = stub(ProjectsService.class,
                                    p.getProperty("company"),
                                    p.getProperty("emailAddress"),
                                    p.getProperty("password"));

                            expectThat(svc.getPath()).equalTo("projects");
                        }
                    });

                    it("should return an ArrayList of projects", new Test() {
                        @Override public void run() throws Throwable {
                            ProjectsService svc = stub(ProjectsService.class,
                                    p.getProperty("company"),
                                    p.getProperty("emailAddress"),
                                    p.getProperty("password"));
View Full Code Here

TOP

Related Classes of com.csam.stubs.bdd.Test

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.