|
1 | 1 | /*
|
2 |
| - * Copyright 2021-2023 the original author or authors. |
| 2 | + * Copyright 2021-2024 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -38,8 +38,8 @@ public void defaultNoPropertiesSet() {
|
38 | 38 | assertThat(properties.getHistory().getName()).isNull();
|
39 | 39 | assertThat(properties.getConfig().getLocation()).isNull();
|
40 | 40 | assertThat(properties.getConfig().getEnv()).isNull();
|
41 |
| - assertThat(properties.getScript().isEnabled()).isTrue(); |
42 |
| - assertThat(properties.getInteractive().isEnabled()).isTrue(); |
| 41 | + assertThat(properties.getScript().isEnabled()).isFalse(); |
| 42 | + assertThat(properties.getInteractive().isEnabled()).isFalse(); |
43 | 43 | assertThat(properties.getNoninteractive().isEnabled()).isTrue();
|
44 | 44 | assertThat(properties.getNoninteractive().getPrimaryCommand()).isNull();
|
45 | 45 | assertThat(properties.getTheme().getName()).isNull();
|
@@ -81,8 +81,8 @@ public void setProperties() {
|
81 | 81 | .withPropertyValues("spring.shell.history.name=fakename")
|
82 | 82 | .withPropertyValues("spring.shell.config.location=fakelocation")
|
83 | 83 | .withPropertyValues("spring.shell.config.env=FAKE_ENV")
|
84 |
| - .withPropertyValues("spring.shell.script.enabled=false") |
85 |
| - .withPropertyValues("spring.shell.interactive.enabled=false") |
| 84 | + .withPropertyValues("spring.shell.script.enabled=true") |
| 85 | + .withPropertyValues("spring.shell.interactive.enabled=true") |
86 | 86 | .withPropertyValues("spring.shell.noninteractive.enabled=false")
|
87 | 87 | .withPropertyValues("spring.shell.noninteractive.primary-command=fakecommand")
|
88 | 88 | .withPropertyValues("spring.shell.theme.name=fake")
|
@@ -121,8 +121,8 @@ public void setProperties() {
|
121 | 121 | assertThat(properties.getHistory().getName()).isEqualTo("fakename");
|
122 | 122 | assertThat(properties.getConfig().getLocation()).isEqualTo("fakelocation");
|
123 | 123 | assertThat(properties.getConfig().getEnv()).isEqualTo("FAKE_ENV");
|
124 |
| - assertThat(properties.getScript().isEnabled()).isFalse(); |
125 |
| - assertThat(properties.getInteractive().isEnabled()).isFalse(); |
| 124 | + assertThat(properties.getScript().isEnabled()).isTrue(); |
| 125 | + assertThat(properties.getInteractive().isEnabled()).isTrue(); |
126 | 126 | assertThat(properties.getNoninteractive().isEnabled()).isFalse();
|
127 | 127 | assertThat(properties.getNoninteractive().getPrimaryCommand()).isEqualTo("fakecommand");
|
128 | 128 | assertThat(properties.getTheme().getName()).isEqualTo("fake");
|
|
0 commit comments