You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private String EXPECTED_MESSAGE = "The key to efficient learning is practice!";
For me this var make coupling between tests, what do you think about it?
Also, just wondering, regarding this test class, why do you need to crazy logic in the com.bobocode.intro.ExerciseIntroductionTest#encodeMessageReturnsCorrectPhrase? Vs just
assertEquals(exerciseIntroduction.encodeMessage(EXPECTED_MESSAGE), "VGhlIGtleSB0byBlZmZpY2llbnQgbGVhcm5pbmcgaXMgcHJhY3RpY2Uh");
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
java-fundamentals-exercises/0-0-intro/src/test/java/com/bobocode/intro/ExerciseIntroductionTest.java
Line 26 in c6617fa
private String EXPECTED_MESSAGE = "The key to efficient learning is practice!";
For me this var make coupling between tests, what do you think about it?
Also, just wondering, regarding this test class, why do you need to crazy logic in the com.bobocode.intro.ExerciseIntroductionTest#encodeMessageReturnsCorrectPhrase? Vs just
assertEquals(exerciseIntroduction.encodeMessage(EXPECTED_MESSAGE), "VGhlIGtleSB0byBlZmZpY2llbnQgbGVhcm5pbmcgaXMgcHJhY3RpY2Uh");
Beta Was this translation helpful? Give feedback.
All reactions