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
Copy file name to clipboardExpand all lines: affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleConfigurationTest.kt
+27
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
packagecom.dropbox.affectedmoduledetector
2
2
3
3
importcom.google.common.truth.Truth.assertThat
4
+
importorg.junit.Assert.assertFalse
5
+
importorg.junit.Assert.assertTrue
4
6
importorg.junit.Assert.fail
5
7
importorg.junit.Before
6
8
importorg.junit.Rule
@@ -324,4 +326,29 @@ class AffectedModuleConfigurationTest {
324
326
325
327
assert(actual.first().taskDescription =="Description of fake task")
326
328
}
329
+
330
+
@Test
331
+
fun`GIVEN AffectedModuleConfiguration WHEN buildAllWhenNoProjectsChanged THEN then default value is true`() {
332
+
// GIVEN
333
+
// config
334
+
335
+
// WHEN
336
+
val buildAllWhenNoProjectsChanged = config.buildAllWhenNoProjectsChanged
337
+
338
+
// THEN
339
+
assertTrue(buildAllWhenNoProjectsChanged)
340
+
}
341
+
342
+
@Test
343
+
fun`GIVEN AffectedModuleConfiguration WHEN buildAllWhenNoProjectsChanged is set to false THEN then value is false`() {
Copy file name to clipboardExpand all lines: affectedmoduledetector/src/test/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorImplTest.kt
+23
Original file line number
Diff line number
Diff line change
@@ -337,6 +337,29 @@ class AffectedModuleDetectorImplTest {
0 commit comments