Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/individual/performance-assessment.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The learning goals of I3 are:

- Deciding which performance concerns are important for a system
- Deciding between different approaches to performance assessment and understanding their limitations
- Learn how to use JMeter for load testing and performance assessment
- Learning how to use JMeter for load testing and performance assessment

# Performance analysis of book website

Expand Down Expand Up @@ -84,7 +84,7 @@ precise as possible (e.g., "about 1200 requests").
Submit the report as a [Zipped PDF Report]({filename}/general/report.md) (max 4 pages including any screenshots, plots,
etc.) with clear subsections to Canvas. Keep all sections under half a page if
possible, except for the process description, which might be longer and might
include additionally screenshots or scripts if that simplifies your
include additional screenshots or scripts if that simplifies your
description.

The following criteria must be satisfied for I3 to be accepted as complete.
Expand Down
2 changes: 1 addition & 1 deletion content/individual/testing-mocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ Usually you should avoid modifying the production code to add wrappers that are

Keep in mind that there are many different ways to solve everything in this assignment. For example, mockito has `@` decorators that can make your code a lot cleaner than the provided sample code.

You can use the `try (MockedConstruction` pattern to intercept any constructor. This is using a Java feature called [try-with-resources](https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html). But its not necessary to do unless the "new" you're trying to intercept is in the production code (or somewhere inside of github-api). For any constructors called in the testing code, you can just `mock(Whatever.class)`.
You can use the `try (MockedConstruction` pattern to intercept any constructor. This is using a Java feature called [try-with-resources](https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html). But it's not necessary to do unless the "new" you're trying to intercept is in the production code (or somewhere inside of github-api). For any constructors called in the testing code, you can just `mock(Whatever.class)`.

Copyright 2021, 2022 Dr. Sarah Nadi. Copyright 2023, 2024 Dr. Hazel Campbell. All rights reserved.