Skip to content

BAEL-1041 Introduction to Caffeine#2585

Merged
KevinGilmore merged 34 commits into
eugenp:masterfrom
retroq:master
Oct 11, 2017
Merged

BAEL-1041 Introduction to Caffeine#2585
KevinGilmore merged 34 commits into
eugenp:masterfrom
retroq:master

Conversation

@retroq

@retroq retroq commented Sep 8, 2017

Copy link
Copy Markdown
Contributor

No description provided.

retroq added 22 commits April 2, 2017 23:43
Conflicts:
	spring-core/src/main/java/com/baeldung/value/ValuesApp.java
Conflicts:
	libraries/pom.xml
	libraries/src/main/java/com/baeldung/awaitility/AsyncService.java
	libraries/src/test/java/com/baeldung/awaitility/AsyncServiceUnitTest.java
public class CaffeineUnitTest {

@Test
public void given_Cache_whenPopulate_thenValueStored() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several of the test names begin with "given_".
Let's remove the trailing underscore. So this one, for example, would just be:
"givenCache_whenPopulate_thenValueStored"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


String key = "A";
DataObject dataObject = cache.getIfPresent(key);
assertNull(dataObject);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always add a blank line between what is being tested and the assertion(s).

@KevinGilmore KevinGilmore merged commit 31f4581 into eugenp:master Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants