255 references to Path
Aspire.Hosting.Java.Tests (255)
AddJavaAppPublishTests.cs (76)
113
builder.AddJavaApp("worker", tempDir.
Path
, "target/worker.jar")
149
var app = builder.AddJavaApp("api", tempDir.
Path
)
199
WritePom(appDirectory.
Path
, javaVersion: "21");
202
var app = builder.AddJavaApp("api", appDirectory.
Path
)
298
var app = builder.AddJavaApp("api", appDirectory.
Path
, jarPath);
522
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), $"""
533
Assert.Equal(expected, JavaVersionDetector.Detect(appDirectory.
Path
));
543
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
563
Assert.Equal("17", JavaVersionDetector.Detect(appDirectory.
Path
));
571
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
586
Assert.Equal("25", JavaVersionDetector.Detect(appDirectory.
Path
));
594
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
610
Assert.Equal("25", JavaVersionDetector.Detect(appDirectory.
Path
));
618
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
638
Assert.Equal("25", JavaVersionDetector.Detect(appDirectory.
Path
));
653
WriteProfilePom(appDirectory.
Path
);
655
Assert.Equal("25", JavaVersionDetector.Detect(appDirectory.
Path
, JavaBuildTool.Maven, buildArgs));
665
WriteProfilePom(appDirectory.
Path
);
667
Assert.Equal("21", JavaVersionDetector.Detect(appDirectory.
Path
, JavaBuildTool.Maven, buildArgs));
679
WriteProfilePom(appDirectory.
Path
);
681
Assert.Equal("17", JavaVersionDetector.Detect(appDirectory.
Path
, JavaBuildTool.Maven, buildArgs));
688
WriteProfilePom(appDirectory.
Path
);
689
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), "plugins { id 'java' }");
691
Assert.Equal("17", JavaVersionDetector.Detect(appDirectory.
Path
, JavaBuildTool.Gradle, ["-Pprod"]));
699
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
714
Assert.Equal("21", JavaVersionDetector.Detect(appDirectory.
Path
));
724
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
738
Assert.Equal(JavaVersionDetector.DefaultJavaVersion, JavaVersionDetector.Detect(appDirectory.
Path
));
908
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), script);
910
Assert.Equal(expected, JavaVersionDetector.Detect(appDirectory.
Path
));
1020
File.WriteAllText(Path.Combine(appDirectory.
Path
, fileName), script);
1022
Assert.Equal("25", JavaVersionDetector.Detect(appDirectory.
Path
));
1030
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), """
1035
Assert.Equal("21", JavaVersionDetector.Detect(appDirectory.
Path
));
1043
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
1046
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), "sourceCompatibility = '21'");
1048
Assert.Equal("17", JavaVersionDetector.Detect(appDirectory.
Path
));
1062
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
1065
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), "sourceCompatibility = '21'");
1069
Assert.Equal(expected, JavaVersionDetector.Detect(appDirectory.
Path
, tool));
1079
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
1082
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), "plugins { id 'java' }");
1084
Assert.Equal("17", JavaVersionDetector.Detect(appDirectory.
Path
, JavaBuildTool.Gradle));
1094
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
1109
Assert.Equal("21", JavaVersionDetector.Detect(appDirectory.
Path
));
1117
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
1131
Assert.Equal("17", JavaVersionDetector.Detect(appDirectory.
Path
));
1139
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), """
1150
Assert.Equal(JavaVersionDetector.DefaultJavaVersion, JavaVersionDetector.Detect(appDirectory.
Path
));
1160
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), "<project>");
1162
Assert.Equal(JavaVersionDetector.DefaultJavaVersion, JavaVersionDetector.Detect(appDirectory.
Path
));
1171
var app = builder.AddJavaApp("api", appDirectory.
Path
, "target/api.jar");
1174
() => JavaDockerfileGenerator.ResolveBuildTool(app.Resource, appDirectory.
Path
));
1178
$"Add a pom.xml, build.gradle, build.gradle.kts, settings.gradle, or settings.gradle.kts to '{appDirectory.
Path
}', " +
1192
File.WriteAllText(Path.Combine(appDirectory.
Path
, fileName), "");
1195
var app = builder.AddJavaApp("api", appDirectory.
Path
, "build/libs/api.jar");
1197
var (tool, args) = JavaDockerfileGenerator.ResolveBuildTool(app.Resource, appDirectory.
Path
);
1209
File.WriteAllText(Path.Combine(appDirectory.
Path
, "pom.xml"), "<project />");
1210
File.WriteAllText(Path.Combine(appDirectory.
Path
, "build.gradle"), "");
1213
var app = builder.AddJavaApp("api", appDirectory.
Path
).WithGradleTask("bootRun").WithGradleBuild("bootJar");
1215
var (tool, args) = JavaDockerfileGenerator.ResolveBuildTool(app.Resource, appDirectory.
Path
);
1824
var stagingDirectory = Path.Combine(workspace.
Path
, "staged");
1859
workspace.
Path
);
2003
var app = builder.AddJavaApp("api", tempDir.
Path
, jarPath);
2008
() => JavaDockerfileGenerator.TryGetPrebuiltJarPath(app.Resource, tempDir.
Path
, out _));
2020
var app = builder.AddJavaApp("api", tempDir.
Path
)
2286
WritePom(appDirectory.
Path
, javaVersion: "21");
2289
var app = builder.AddJavaApp("api", appDirectory.
Path
, "../shared/worker.jar").WithMavenBuild();
2307
WritePom(appDirectory.
Path
, javaVersion: "21");
2310
var app = builder.AddJavaApp("api", appDirectory.
Path
, jarPath).WithMavenBuild();
2324
WritePom(appDirectory.
Path
, javaVersion: "21");
2327
var app = builder.AddJavaApp("api", appDirectory.
Path
).WithMavenBuild().WithJarArtifact(@"C:\out\app.jar");
2330
() => JavaDockerfileGenerator.JavaContainerBuild.Resolve(app.Resource, appDirectory.
Path
));
2339
WritePom(appDirectory.
Path
, javaVersion: "21");
2342
var app = builder.AddJavaApp("api", appDirectory.
Path
).WithMavenBuild().WithWrapperPath(@"C:\tools\mvnw");
2345
() => JavaDockerfileGenerator.JavaContainerBuild.Resolve(app.Resource, appDirectory.
Path
));
AddJavaAppTests.cs (121)
41
var app = builder.AddJavaApp("api", tempDir.
Path
).WithMavenGoal("spring-boot:run");
46
Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultMavenWrapper), tempDir.
Path
, "spring-boot:run"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
56
var app = builder.AddJavaApp("api", tempDir.
Path
).WithGradleTask("bootRun", "--no-daemon");
59
Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultGradleWrapper), tempDir.
Path
, "bootRun", "--no-daemon"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
137
var app = builder.AddJavaApp("api", tempDir.
Path
);
139
var expectedPath = Path.GetFullPath(tempDir.
Path
, builder.AppHostDirectory);
222
var app = builder.AddJavaApp("api", tempDir.
Path
);
240
var app = builder.AddJavaApp("api", tempDir.
Path
)
254
var app = builder.AddJavaApp("api", tempDir.
Path
)
281
var app = builder.AddJavaApp("api", tempDir.
Path
);
299
var app = builder.AddJavaApp("api", tempDir.
Path
)
314
var app = builder.AddJavaApp("api", tempDir.
Path
)
320
var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultGradleWrapper));
322
Assert.Equal(ExpectedWrapperInvocation.Args(expectedWrapper, tempDir.
Path
, "bootRun"), args);
332
var app = builder.AddJavaApp("api", tempDir.
Path
)
338
var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultMavenWrapper));
340
Assert.Equal(ExpectedWrapperInvocation.Args(expectedWrapper, tempDir.
Path
, "spring-boot:run"), args);
351
File.WriteAllText(Path.Combine(repo.
Path
, "settings.gradle"), "include 'services:api'");
352
var module = Directory.CreateDirectory(Path.Combine(repo.
Path
, "services", "api")).FullName;
359
var expectedWrapper = Path.GetFullPath(Path.Combine(repo.
Path
, JavaHostingExtensions.s_defaultGradleWrapper));
371
File.WriteAllText(Path.Combine(repo.
Path
, "pom.xml"), "<project />");
372
var module = Directory.CreateDirectory(Path.Combine(repo.
Path
, "services", "api")).FullName;
379
var expectedWrapper = Path.GetFullPath(Path.Combine(repo.
Path
, JavaHostingExtensions.s_defaultMavenWrapper));
391
var module = Directory.CreateDirectory(Path.Combine(repo.
Path
, "services", "api")).FullName;
438
var app = builder.AddJavaApp("api", tempDir.
Path
)
453
var app = builder.AddJavaApp("api", tempDir.
Path
, "app.jar");
469
var app = builder.AddJavaApp("api", tempDir.
Path
, "app.jar");
485
var app = builder.AddJavaApp("api", tempDir.
Path
).WithMavenGoal("spring-boot:run");
501
var app = builder.AddJavaApp("api", tempDir.
Path
).WithGradleTask("bootRun");
546
var app = builder.AddJavaApp("api", tempDir.
Path
)
553
var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.
Path
, "scripts/custom-mvnw"));
555
Assert.Equal(ExpectedWrapperInvocation.Args(expectedWrapper, tempDir.
Path
, "spring-boot:run"), args);
564
var app = builder.AddJavaApp("api", tempDir.
Path
)
571
var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.
Path
, "scripts/custom-gradlew"));
573
Assert.Equal(ExpectedWrapperInvocation.Args(expectedWrapper, tempDir.
Path
, "bootRun"), args);
741
var app = builder.AddJavaApp("api", tempDir.
Path
).WithMavenGoal("spring-boot:run");
760
var app = builder.AddJavaApp("api", tempDir.
Path
).WithGradleTask("bootRun");
779
var customWrapper = Path.Combine(tempDir.
Path
, "tools", "mvnw");
786
var app = builder.AddJavaApp("api", tempDir.
Path
)
802
ExpectedWrapperInvocation.Args(Path.GetFullPath(customWrapper), Path.GetFullPath(tempDir.
Path
), "spring-boot:run"),
815
var wrapper = Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultMavenWrapper);
822
var app = builder.AddJavaApp("api", tempDir.
Path
).WithMavenGoal("spring-boot:run");
830
WorkingDirectory = tempDir.
Path
,
846
var app = builder.AddJavaApp("api", tempDir.
Path
)
869
var app = builder.AddJavaApp("api", tempDir.
Path
)
877
ExpectedWrapperInvocation.Args("/opt/maven/bin/mvn", tempDir.
Path
, "spring-boot:run"),
1031
builder.AddJavaApp("api", tempDir.
Path
)
1044
builder.AddJavaApp("api", tempDir.
Path
)
1057
builder.AddJavaApp("api", tempDir.
Path
)
1070
builder.AddJavaApp("api", tempDir.
Path
)
1083
builder.AddJavaApp("api", tempDir.
Path
)
1095
builder.AddJavaApp("api", tempDir.
Path
)
1110
var app = builder.AddJavaApp("api", tempDir.
Path
);
1149
var app = builder.AddJavaApp("api", tempDir.
Path
)
1163
var app = builder.AddJavaApp("api", tempDir.
Path
)
1220
var app = builder.AddJavaApp("api", tempDir.
Path
)
1250
var app = builder.AddJavaApp("api", tempDir.
Path
);
1271
var app = builder.AddJavaApp("api", tempDir.
Path
)
1289
var app = builder.AddJavaApp("api", tempDir.
Path
)
1307
var app = builder.AddJavaApp("api", tempDir.
Path
)
1314
var expectedWrapper = Path.GetFullPath(Path.Combine(tempDir.
Path
, "tools/mvn"));
1316
Assert.Equal(ExpectedWrapperInvocation.Args(expectedWrapper, tempDir.
Path
, "spring-boot:run"), args);
1327
var app = builder.AddJavaApp("api", tempDir.
Path
)
1344
var app = builder.AddJavaApp("api", tempDir.
Path
)
1376
var javaExecutable = Path.Combine(tempDir.
Path
, fileName);
1377
var app = builder.AddJavaApp("api", tempDir.
Path
, "app.jar")
1392
var command = Path.Combine(tempDir.
Path
, fileName);
1393
var app = builder.AddJavaApp("api", tempDir.
Path
, "app.jar")
1405
var app = builder.AddJavaApp("api", tempDir.
Path
, "app.jar")
1418
var javaExecutable = Path.Combine(tempDir.
Path
, OperatingSystem.IsWindows() ? "java.exe" : "java");
1419
var app = builder.AddJavaApp("api", tempDir.
Path
, "app.jar")
1445
var javaExecutable = Path.Combine(tempDir.
Path
, OperatingSystem.IsWindows() ? "java.exe" : "java");
1446
var app = builder.AddJavaApp("api", tempDir.
Path
);
1470
var wrapperCommand = Path.Combine(tempDir.
Path
, OperatingSystem.IsWindows() ? "cmd.exe" : "sh");
1471
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
)
1488
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
1508
tempDir.
Path
,
1512
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
1568
var app = builder.AddJavaApp("api", tempDir.
Path
).WithMavenGoal("spring-boot:run");
1576
Assert.Equal(tempDir.
Path
, launchConfiguration.WorkingDirectory);
1584
var jarPath = WriteJarWithManifest(tempDir.
Path
, "api.jar", "com.example.catalog.CatalogApplication");
1586
var app = builder.AddJavaApp("api", tempDir.
Path
, "api.jar");
1604
var jarPath = WriteJarWithManifest(tempDir.
Path
, "target/api.jar", "com.example.catalog.CatalogApplication");
1606
var app = builder.AddJavaApp("api", tempDir.
Path
, @"target\api.jar");
1620
WriteJarWithManifest(tempDir.
Path
, "api.jar", MainClass, wrapLongValue: true);
1622
var app = builder.AddJavaApp("api", tempDir.
Path
, "api.jar");
1634
var jarPath = WriteJarWithManifest(tempDir.
Path
, "api.jar", "org.springframework.boot.loader.JarLauncher");
1636
var app = builder.AddJavaApp("api", tempDir.
Path
, "api.jar")
1650
WriteJarWithManifest(tempDir.
Path
, "no-main.jar", mainClass: null);
1652
var noMainClass = builder.AddJavaApp("no-main", tempDir.
Path
, "no-main.jar");
1653
var missing = builder.AddJavaApp("missing", tempDir.
Path
, "does-not-exist.jar");
1659
Assert.Equal(Path.Combine(tempDir.
Path
, "no-main.jar"), Assert.Single(noMainClassConfiguration.ClassPaths!));
1663
Assert.Equal(Path.Combine(tempDir.
Path
, "does-not-exist.jar"), Assert.Single(missingConfiguration.ClassPaths!));
1678
tempDir.
Path
,
1683
var app = builder.AddJavaApp("catalog", tempDir.
Path
);
1689
Path.Combine(tempDir.
Path
, tool == "maven" ? "pom.xml" : "settings.gradle"),
1721
WriteJarWithManifest(tempDir.
Path
, "build/libs/orders.jar", mainClass: null, startClass: "com.example.orders.OrdersApplication");
1724
WriteJarWithManifest(tempDir.
Path
, "build/libs/orders-plain.jar", mainClass: null);
1725
WriteJarWithManifest(tempDir.
Path
, "build/libs/orders-sources.jar", mainClass: null);
1726
WriteJarWithManifest(tempDir.
Path
, "build/libs/orders-javadoc.jar", mainClass: null);
1728
var app = builder.AddJavaApp("orders", tempDir.
Path
).WithGradleTask("bootRun");
1742
WriteJarWithManifest(tempDir.
Path
, "target/catalog-0.0.1-SNAPSHOT.jar", mainClass: null, startClass: "com.example.catalog.CatalogApplication");
1743
WriteJarWithManifest(tempDir.
Path
, "target/catalog-0.0.1-SNAPSHOT-shaded.jar", mainClass: null, startClass: "com.example.catalog.Other");
1745
var app = builder.AddJavaApp("catalog", tempDir.
Path
).WithMavenGoal("spring-boot:run");
1760
WriteJarWithManifest(tempDir.
Path
, "target/catalog.jar", mainClass: "org.springframework.boot.loader.launch.JarLauncher");
1762
var app = builder.AddJavaApp("catalog", tempDir.
Path
).WithMavenGoal("spring-boot:run");
1778
WriteJarWithManifest(tempDir.
Path
, "target/catalog.jar", mainClass: null, startClass: "com.example.catalog.CatalogApplication");
1780
var app = builder.AddJavaApp("catalog", tempDir.
Path
)
1797
File.WriteAllText(Path.Combine(tempDir.
Path
, "pom.xml"), """
1812
var app = builder.AddJavaApp("catalog", tempDir.
Path
).WithMavenGoal("spring-boot:run");
1827
File.WriteAllText(Path.Combine(tempDir.
Path
, "settings.gradle"), "rootProject.name = 'orders'\n");
1829
var app = builder.AddJavaApp("orders", tempDir.
Path
).WithGradleTask("bootRun");
1844
var app = builder.AddJavaApp("orders", tempDir.
Path
).WithGradleTask("bootRun");
1849
Path.GetFileName(tempDir.
Path
.TrimEnd(Path.DirectorySeparatorChar)),
1861
Path.Combine(tempDir.
Path
, "settings.gradle"),
1864
var app = builder.AddJavaApp("apphost", tempDir.
Path
).WithGradleTask("bootRun");
1882
File.WriteAllText(Path.Combine(tempDir.
Path
, "pom.xml"), """
1893
tempDir.
Path
,
1898
.AddJavaApp("worker", tempDir.
Path
, Path.Combine("target", "worker-0.0.1-SNAPSHOT.jar"))
AddQuarkusAppTests.cs (21)
28
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
48
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
65
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
94
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
101
Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultMavenWrapper), tempDir.
Path
, "quarkus:dev"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
111
var app = builder.AddQuarkusApp("pricing", tempDir.
Path
);
118
Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultGradleWrapper), tempDir.
Path
, "quarkusDev"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
130
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
142
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
159
var app = builder.AddQuarkusApp("pricing", tempDir.
Path
);
174
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
192
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
209
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
228
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
252
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
270
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
281
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
);
290
$"Directory '{tempDir.
Path
}' contains no pom.xml, build.gradle, build.gradle.kts, settings.gradle, or settings.gradle.kts, " +
302
var app = builder.AddQuarkusApp("inventory", tempDir.
Path
)
AddSpringBootAppTests.cs (32)
19
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
26
Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultMavenWrapper), tempDir.
Path
, "spring-boot:run"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
36
var app = builder.AddSpringBootApp("orders", tempDir.
Path
);
43
Assert.Equal(ExpectedWrapperInvocation.Args(Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultGradleWrapper), tempDir.
Path
, "bootRun"), await ArgumentEvaluator.GetArgumentListAsync(app.Resource));
53
var app = builder.AddSpringBootApp("orders", tempDir.
Path
);
73
var runApp = runBuilder.AddSpringBootApp("catalog", tempDir.
Path
);
81
var publishApp = publishBuilder.AddJavaApp("catalog", tempDir.
Path
, "build/libs/catalog.jar");
82
var (publishTool, _) = JavaDockerfileGenerator.ResolveBuildTool(publishApp.Resource, tempDir.
Path
);
97
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
110
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
)
119
Path.Combine(tempDir.
Path
, JavaHostingExtensions.s_defaultMavenWrapper),
120
tempDir.
Path
,
133
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
)
154
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
174
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
185
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
);
194
$"Directory '{tempDir.
Path
}' contains no pom.xml, build.gradle, build.gradle.kts, settings.gradle, or settings.gradle.kts, " +
207
var runApp = runBuilder.AddSpringBootApp("catalog", tempDir.
Path
);
215
var publishApp = publishBuilder.AddJavaApp("catalog", tempDir.
Path
, "target/catalog.jar");
217
() => JavaDockerfileGenerator.ResolveBuildTool(publishApp.Resource, tempDir.
Path
));
220
$"Directory '{tempDir.
Path
}' contains both Maven and Gradle build files, so the build tool for resource 'catalog' is ambiguous. " +
235
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
).WithOtelAgent();
246
var expected = Path.GetFullPath(Path.Combine(tempDir.
Path
, outputDirectory, "agent", "opentelemetry-javaagent.jar"));
261
var app = builder.AddJavaApp("catalog", tempDir.
Path
).WithOtelAgent();
277
var expected = Path.GetFullPath(Path.Combine(tempDir.
Path
, outputDirectory, "agent", "opentelemetry-javaagent.jar"));
294
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
).WithOtelAgent();
320
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
)
335
var app = builder.AddJavaApp("api", tempDir.
Path
).WithOtelAgent();
355
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
)
381
var app = builder.AddSpringBootApp("catalog", tempDir.
Path
)
JavaBuildToolResolverTests.cs (4)
21
var resource = new JavaAppResource("api", tempDir.
Path
);
26
Assert.Equal(Path.GetFullPath(Path.Combine(tempDir.
Path
, expectedWrapperName)), wrapperPath);
36
var app = builder.AddJavaApp("api", tempDir.
Path
).WithWrapperPath("tools/custom-wrapper");
40
Assert.Equal(Path.GetFullPath(Path.Combine(tempDir.
Path
, "tools", "custom-wrapper")), wrapperPath);
TempJavaAppDirectory.cs (1)
43
var fullPath = System.IO.Path.Combine(
Path
, fileName);