Posts

Showing posts from July, 2025

CST 438 - Software Engineering - Week 2

Image
  In lab 1, we used something called a Mock in our JUnit tests. A Mock is kind of like a fake version of a class or object that we do not want to use directly in our tests. It helps us test just the part of the code we care about without needing everything else to work. For example, if one part of the code talks to a database or an API, we can use a Mock instead so that our test runs faster and is not affected by outside stuff. This makes it easier to find bugs and keep our tests simple and reliable.