Examples of buyArticle()


Examples of info.walnutstreet.vs.ps03.dbserver.interfaces.DBServerInterface.buyArticle()

    assertEquals(server.getArticleReserved(4), 8);
    int sumbefore = server.getArticleReserved(4) + server.getArticleAvailable(4);


    // füge zwei hinzu
    server.buyArticle(4, 2);
    assertEquals(server.getArticleReserved(4), 10);

    // füge zwei hinzu
    server.buyArticle(4, 2);
    assertEquals(server.getArticleReserved(4), 12);
View Full Code Here

Examples of info.walnutstreet.vs.ps03.dbserver.interfaces.DBServerInterface.buyArticle()

    // füge zwei hinzu
    server.buyArticle(4, 2);
    assertEquals(server.getArticleReserved(4), 10);

    // füge zwei hinzu
    server.buyArticle(4, 2);
    assertEquals(server.getArticleReserved(4), 12);

    // entferne zwei
    server.buyArticle(4, -2);
    assertEquals(server.getArticleReserved(4), 10);
View Full Code Here

Examples of info.walnutstreet.vs.ps03.dbserver.interfaces.DBServerInterface.buyArticle()

    // füge zwei hinzu
    server.buyArticle(4, 2);
    assertEquals(server.getArticleReserved(4), 12);

    // entferne zwei
    server.buyArticle(4, -2);
    assertEquals(server.getArticleReserved(4), 10);
   
    int sumafter = server.getArticleReserved(4) + server.getArticleAvailable(4);
   
    assertEquals (sumbefore, sumafter);
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.