Spaces:
Sleeping
Sleeping
Download server/templates/level_5/com/tests/SecurityTest.java from anonajay/lint_coding_agent: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/spaces/anonajay/lint_coding_agent/resolve/main/server/templates/level_5/com/tests/SecurityTest.java
- Command line
-
hf download hf://spaces/anonajay/lint_coding_agent/server/templates/level_5/com/tests/SecurityTest.java
-
curl -L -o SecurityTest.java https://huggingface.co/spaces/anonajay/lint_coding_agent/resolve/main/server/templates/level_5/com/tests/SecurityTest.java
355 Bytes
| package com.tests; | |
| import com.security.AuthService; | |
| public class SecurityTest { | |
| public void testLogin() { | |
| AuthService auth = new AuthService(); | |
| // This line causes a "method has private access" compiler error | |
| if (auth.validateToken("lint-ai-2026")) { | |
| System.out.println("Test Passed"); | |
| } | |
| } | |
| } |