CST 438 - Software Engineering - Week 2

 




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.

Comments

Popular posts from this blog

CST 311 - Intro to Computer Networks - Week 1

CST 462S - Race Gender & Class Digital World - Week 8

CST 311 - Intro to Computer Networks - Week 2