CST 438 Week 2

 

WELCOME TO WEEK 2

Learning Journal - CST 438

In Lab 1 on JUnit, we used a Mock to simulate parts of the application, like a database, without actually connecting to the real one. A mock acts like a stand-in for something real, such as a database or web service, and helps us see how our code responds without needing to use the actual system. This is helpful in unit testing because it keeps the focus on the specific piece of code we’re testing. If there’s an issue, we can be confident it’s coming from our code and not some outside system. It also helps tests run quicker and more consistently since they don’t rely on anything external.

Comments

Popular posts from this blog

CST 370 Week 3

CST 311 Week 1

CST 370 Week 2