If you build your Scala application through Test-Driven Development, you’ll quickly see the advantages of testing before you write production code. This hands-on book shows you how to create tests with ScalaTest and the Specs2—two of the best testing frameworks available—and how to run your tests in the Simple Build Tool (SBT) designed specifically for Scala projects.
By building a sample digital jukebox application, you’ll discover how to isolate your tests from large subsystems and networks with mocking code, and how to use the ScalaCheck library for automated specification-based testing. If you’re familiar with Scala, Ruby, or Python, this book is for you.
Get an overview of Test-Driven Development
Start a simple project with SBT and create tests before you write code
Dive into SBT’s basic commands, interactive mode, packaging, and history
Use ScalaTest both in the command line and with SBT, and learn how to incorporate JUnit and TestNG
Work with the Specs2 framework, including Specification styles, matchers DSLs, and Data Tables
Understand mocking by using Java frameworks EasyMock and Mockito, and the Scala-only framework ScalaMock
Automate testing by using ScalaCheck to generate fake data
Mastering Oracle SQL, 2nd Edition Updated to cover Oracle 10g, this new edition of the highly regarded Mastering Oracle SQL has a stronger focus on practical, expert best-practices and on Oracle-specific SQL technique than any other book on the market. For those who want to harness the untapped (and often overlooked) power of Oracle SQL, this... Organic Chemistry As a Second Language: Second Semester Topics
Readers continue to turn to Klein's Organic Chemistry As a Second Language: Second Semester Topics, 4th Edition because it enables them to better understand fundamental principles, solve problems, and focus on what they need to know to succeed. The fourth edition explores the major principles in the field and explains why...
Using iTunes 10
For 10 years, iTunes has brought listening pleasure to people’s computers. Originally
introduced in January 2001, the first version of iTunes worked only with Mac
OS 9 operating systems, but later that year, Apple added support for OS X and for
iPods—and that’s when iTunes really took off. Subsequent versions of the...
Pro Scalable .NET 2.0 Application Designs
We feel that many designers and architects lack an understanding of how to use Microsoft
technology to build and implement large enterprise solutions. Far too often we have found
architects shivering at the thought of building mission-critical systems based on this technology—
not because they have tried and...
Managing Trust in Cyberspace
In distributed, open systems like cyberspace, where the behavior of autonomous agents is uncertain and can affect other agents' welfare, trust management is used to allow agents to determine what to expect about the behavior of other agents. The role of trust management is to maximize trust between the parties and thereby provide a basis...