11package com .laker .postman .service .update .asset ;
22
33import com .laker .postman .plugin .runtime .PluginRuntime ;
4+ import com .laker .postman .util .AppRuntimeLayout ;
45import com .laker .postman .util .SystemUtil ;
56import org .testng .annotations .AfterMethod ;
67import org .testng .annotations .BeforeMethod ;
@@ -43,6 +44,7 @@ public void shouldResolvePortableModeConsistentlyAcrossModules() throws Exceptio
4344
4445 assertTrue (WindowsVersionDetector .isPortableVersion ());
4546 assertEquals (Paths .get (SystemUtil .getEasyPostmanPath ()).normalize (), appDir .resolve ("data" ));
47+ assertEquals (AppRuntimeLayout .logRootDirectory (RuntimeModeConsistencyTest .class ), appDir .resolve ("logs" ));
4648 assertEquals (PluginRuntime .getManagedPluginDir (), appDir .resolve ("plugins" ));
4749 assertEquals (PluginRuntime .getPluginPackageDir (), appDir .resolve ("plugins" ).resolve ("packages" ));
4850 }
@@ -52,9 +54,11 @@ public void shouldTreatJarStyleLaunchAsInstalledModeByDefault() {
5254 System .setProperty ("easyPostman.app.dir" , appDir .toString ());
5355
5456 Path expectedDataRoot = Paths .get (System .getProperty ("user.home" ), "EasyPostman" ).toAbsolutePath ().normalize ();
57+ Path expectedLogRoot = expectedDataRoot .resolve ("logs" );
5558
5659 assertFalse (WindowsVersionDetector .isPortableVersion ());
5760 assertEquals (Paths .get (SystemUtil .getEasyPostmanPath ()).normalize (), expectedDataRoot );
61+ assertEquals (AppRuntimeLayout .logRootDirectory (RuntimeModeConsistencyTest .class ), expectedLogRoot );
5862 assertEquals (PluginRuntime .getManagedPluginDir (), expectedDataRoot .resolve ("plugins" ).resolve ("installed" ));
5963 assertEquals (PluginRuntime .getPluginPackageDir (), expectedDataRoot .resolve ("plugins" ).resolve ("packages" ));
6064 }
0 commit comments