-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removeUnusedImports can use cleanThat backend (#1589)
- Loading branch information
Showing
19 changed files
with
510 additions
and
45 deletions.
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
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
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
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
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
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
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
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
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
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
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
28 changes: 28 additions & 0 deletions
28
testlib/src/main/resources/java/removeunusedimports/Jdk17TextBlockFormatted.test
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,28 @@ | ||
package io.github.shafthq.shaft.tools.tms; | ||
|
||
|
||
|
||
import static io.restassured.RestAssured.*; | ||
|
||
public class XrayIntegrationHelper { | ||
private static String getLinkJIRATicketRequestBody() { | ||
return """ | ||
{ | ||
"update":{ | ||
"issuelinks":[ | ||
{ | ||
"add":{ | ||
"type":{ | ||
"name":"Relates" | ||
}, | ||
"outwardIssue":{ | ||
"key":"${TICKET_ID}" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
"""; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
testlib/src/main/resources/java/removeunusedimports/Jdk17TextBlockUnformatted.test
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,49 @@ | ||
package io.github.shafthq.shaft.tools.tms; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.GsonBuilder; | ||
import com.google.gson.JsonElement; | ||
import com.google.gson.JsonParser; | ||
import com.shaft.cli.FileActions; | ||
import com.shaft.tools.io.ReportManager; | ||
import io.github.shafthq.shaft.tools.io.helpers.ReportManagerHelper; | ||
import io.restassured.config.RestAssuredConfig; | ||
import io.restassured.config.SSLConfig; | ||
import io.restassured.http.ContentType; | ||
import io.restassured.response.Response; | ||
import io.restassured.specification.RequestSpecification; | ||
|
||
import java.io.File; | ||
import java.nio.file.Files; | ||
import java.nio.file.Paths; | ||
import java.text.SimpleDateFormat; | ||
import java.util.Base64; | ||
import java.util.Calendar; | ||
import java.util.List; | ||
|
||
import static io.restassured.RestAssured.*; | ||
import static io.restassured.config.EncoderConfig.encoderConfig; | ||
|
||
|
||
public class XrayIntegrationHelper { | ||
private static String getLinkJIRATicketRequestBody() { | ||
return """ | ||
{ | ||
"update":{ | ||
"issuelinks":[ | ||
{ | ||
"add":{ | ||
"type":{ | ||
"name":"Relates" | ||
}, | ||
"outwardIssue":{ | ||
"key":"${TICKET_ID}" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
"""; | ||
} | ||
} |
Oops, something went wrong.