Source code cleanup
This commit is contained in:
-6
@@ -2159,12 +2159,6 @@ public final class GuiConfigurationEditorWorkspace {
|
|||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Label textLabel(String text) {
|
|
||||||
Label label = new Label(text);
|
|
||||||
label.setWrapText(true);
|
|
||||||
return label;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void showStatusMessage(String message) {
|
private void showStatusMessage(String message) {
|
||||||
statusLabel.setText(message);
|
statusLabel.setText(message);
|
||||||
statusLabel.setVisible(true);
|
statusLabel.setVisible(true);
|
||||||
|
|||||||
-1
@@ -822,7 +822,6 @@ class GuiEditorRegressionSmokeTest {
|
|||||||
GuiConfigurationEditorWorkspace ws = new GuiConfigurationEditorWorkspace(Optional.empty());
|
GuiConfigurationEditorWorkspace ws = new GuiConfigurationEditorWorkspace(Optional.empty());
|
||||||
ws.requestNewConfiguration();
|
ws.requestNewConfiguration();
|
||||||
|
|
||||||
String originalSource = ws.editorState().values().sourceFolder();
|
|
||||||
GuiConfigurationValues dirty = ws.editorState().values()
|
GuiConfigurationValues dirty = ws.editorState().values()
|
||||||
.withSourceFolder("./dirty-source");
|
.withSourceFolder("./dirty-source");
|
||||||
ws.editorState = ws.editorState().withValues(dirty);
|
ws.editorState = ws.editorState().withValues(dirty);
|
||||||
|
|||||||
-1
@@ -40,7 +40,6 @@ class ClaudeModelCatalogAdapterTest {
|
|||||||
private HttpClient httpClient;
|
private HttpClient httpClient;
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
private HttpResponse<String> httpResponse;
|
private HttpResponse<String> httpResponse;
|
||||||
|
|
||||||
private ClaudeModelCatalogAdapter adapter;
|
private ClaudeModelCatalogAdapter adapter;
|
||||||
|
|||||||
-1
@@ -40,7 +40,6 @@ class OpenAiCompatibleModelCatalogAdapterTest {
|
|||||||
private HttpClient httpClient;
|
private HttpClient httpClient;
|
||||||
|
|
||||||
@Mock
|
@Mock
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
private HttpResponse<String> httpResponse;
|
private HttpResponse<String> httpResponse;
|
||||||
|
|
||||||
private OpenAiCompatibleModelCatalogAdapter adapter;
|
private OpenAiCompatibleModelCatalogAdapter adapter;
|
||||||
|
|||||||
+1
-3
@@ -79,8 +79,6 @@ public class ProviderTechnicalTestService {
|
|||||||
private static final int DEFAULT_TIMEOUT_SECONDS = 30;
|
private static final int DEFAULT_TIMEOUT_SECONDS = 30;
|
||||||
|
|
||||||
private final AiModelCatalogPort modelCatalogPort;
|
private final AiModelCatalogPort modelCatalogPort;
|
||||||
private final ApiKeyResolutionPort apiKeyResolutionPort;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Erstellt einen neuen Service mit den erforderlichen Ports.
|
* Erstellt einen neuen Service mit den erforderlichen Ports.
|
||||||
*
|
*
|
||||||
@@ -91,7 +89,7 @@ public class ProviderTechnicalTestService {
|
|||||||
public ProviderTechnicalTestService(AiModelCatalogPort modelCatalogPort,
|
public ProviderTechnicalTestService(AiModelCatalogPort modelCatalogPort,
|
||||||
ApiKeyResolutionPort apiKeyResolutionPort) {
|
ApiKeyResolutionPort apiKeyResolutionPort) {
|
||||||
this.modelCatalogPort = Objects.requireNonNull(modelCatalogPort, "modelCatalogPort must not be null");
|
this.modelCatalogPort = Objects.requireNonNull(modelCatalogPort, "modelCatalogPort must not be null");
|
||||||
this.apiKeyResolutionPort = Objects.requireNonNull(apiKeyResolutionPort,
|
Objects.requireNonNull(apiKeyResolutionPort,
|
||||||
"apiKeyResolutionPort must not be null");
|
"apiKeyResolutionPort must not be null");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user