-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ClockMvcTest to include MockMvc and fix tag annotation
Refactor the ClockMvcTest to inject MockMvc with @Autowired to facilitate Spring MVC testing. Additionally, change the @tag annotation from "mvc" to "ui" to better reflect the scope of the tests.
- Loading branch information
1 parent
81ee8ee
commit 3f2545e
Showing
5 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="ALL TESTS" type="JUnit" factoryName="JUnit"> | ||
<module name="clocker-vaadin" /> | ||
<extension name="com.fapiko.jetbrains.plugins.better_direnv.runconfigs.IdeaRunConfigurationExtension"> | ||
<option name="DIRENV_ENABLED" value="false" /> | ||
<option name="DIRENV_TRUSTED" value="false" /> | ||
</extension> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="dev.nathanlively.views.clock.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" /> | ||
<option name="ALTERNATIVE_JRE_PATH" value="graalvm-21" /> | ||
<option name="PACKAGE_NAME" value="dev.nathanlively" /> | ||
<option name="MAIN_CLASS_NAME" value="" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="package" /> | ||
<tag value="!ui" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Application" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true"> | ||
<option name="ALTERNATIVE_JRE_PATH" value="graalvm-21" /> | ||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" /> | ||
<option name="FRAME_DEACTIVATION_UPDATE_POLICY" value="UpdateClassesAndResources" /> | ||
<module name="clocker-vaadin" /> | ||
<option name="SPRING_BOOT_MAIN_CLASS" value="dev.nathanlively.Application" /> | ||
<extension name="com.fapiko.jetbrains.plugins.better_direnv.runconfigs.IdeaRunConfigurationExtension"> | ||
<option name="DIRENV_ENABLED" value="false" /> | ||
<option name="DIRENV_TRUSTED" value="false" /> | ||
</extension> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="IO FREE" type="JUnit" factoryName="JUnit"> | ||
<module name="clocker-vaadin" /> | ||
<extension name="com.fapiko.jetbrains.plugins.better_direnv.runconfigs.IdeaRunConfigurationExtension"> | ||
<option name="DIRENV_ENABLED" value="false" /> | ||
<option name="DIRENV_TRUSTED" value="false" /> | ||
</extension> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="dev.nathanlively.views.clock.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" /> | ||
<option name="ALTERNATIVE_JRE_PATH" value="graalvm-21" /> | ||
<option name="PACKAGE_NAME" value="dev.nathanlively.views.clock" /> | ||
<option name="MAIN_CLASS_NAME" value="dev.nathanlively.views.clock.ClockMvcTest" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="tags" /> | ||
<tag value="!ui" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="UI" type="JUnit" factoryName="JUnit"> | ||
<module name="clocker-vaadin" /> | ||
<extension name="com.fapiko.jetbrains.plugins.better_direnv.runconfigs.IdeaRunConfigurationExtension"> | ||
<option name="DIRENV_ENABLED" value="false" /> | ||
<option name="DIRENV_TRUSTED" value="false" /> | ||
</extension> | ||
<extension name="coverage"> | ||
<pattern> | ||
<option name="PATTERN" value="dev.nathanlively.views.clock.*" /> | ||
<option name="ENABLED" value="true" /> | ||
</pattern> | ||
</extension> | ||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="true" /> | ||
<option name="ALTERNATIVE_JRE_PATH" value="graalvm-21" /> | ||
<option name="PACKAGE_NAME" value="dev.nathanlively.views.clock" /> | ||
<option name="MAIN_CLASS_NAME" value="dev.nathanlively.views.clock.ClockMvcTest" /> | ||
<option name="METHOD_NAME" value="" /> | ||
<option name="TEST_OBJECT" value="tags" /> | ||
<tag value="ui" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters