---
title: "Lance Alexander (@KnitwitGeek) | Hashnode"
description: "while (!dead) { life++; }. Read the latest articles by Lance Alexander on Hashnode."
url: "https://hashnode.com/@KnitwitGeek"
---

@KnitwitGeek

# Lance Alexander

@KnitwitGeek · Indiana, US · Joined August 2021

while (!dead) { life++; }

### [Understanding @InjectMocks for private field mocking](https://practicingprogrammer.hashnode.dev/understanding-injectmocks-for-private-field-mocking?utm_source=hashnode&utm_medium=feed)

Recently I've been working on getting unit tests set up for a decent chunk of java code. The existing tests were more of a placeholder until the team I work with could set up more rigorous testing. The majority of the code hasn't updated very much bu...

8 min read · [practicingprogrammer.hashnode.dev](https://practicingprogrammer.hashnode.dev/understanding-injectmocks-for-private-field-mocking?utm_source=hashnode&utm_medium=feed)

[Jan 14, 2022](https://hashnode.com/posts/understanding-injectmocks-for-private-field-mocking/61e1edccd546507ab034370a)
