File tree Expand file tree Collapse file tree
plugins/fancynpcs/src/main/java/de/oliver/fancynpcs/tests/skins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,4 +185,16 @@ public void testGetByURLInvalid(Player player) {
185185 expect (ex ).toBeDefined ();
186186 expect (ex .getReason ()).toBe (SkinLoadException .Reason .INVALID_URL );
187187 }
188+
189+ @ FPTest (name = "SkinManagerImpl#getByFile invalid" )
190+ public void testGetByFileInvalid (Player player ) {
191+ String filePath = "invalid-file-path-" + System .currentTimeMillis () + ".html" ;
192+ SkinData .SkinVariant variant = SkinData .SkinVariant .SLIM ;
193+
194+ Runnable runnable = () -> manager .getByFile (filePath , variant );
195+ SkinLoadException ex = expect (runnable ).toThrow (SkinLoadException .class );
196+
197+ expect (ex ).toBeDefined ();
198+ expect (ex .getReason ()).toBe (SkinLoadException .Reason .INVALID_FILE );
199+ }
188200}
You can’t perform that action at this time.
0 commit comments