Updated for loss of dump.war
This commit is contained in:
parent
0ddab409eb
commit
5bfc74f816
|
@ -1,3 +1,16 @@
|
|||
//
|
||||
// ========================================================================
|
||||
// Copyright (c) 1995 Mort Bay Consulting Pty Ltd and others.
|
||||
//
|
||||
// This program and the accompanying materials are made available under the
|
||||
// terms of the Eclipse Public License v. 2.0 which is available at
|
||||
// https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
|
||||
// which is available at https://www.apache.org/licenses/LICENSE-2.0.
|
||||
//
|
||||
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
|
||||
// ========================================================================
|
||||
//
|
||||
|
||||
package org.eclipse.jetty.ee;
|
||||
|
||||
import org.eclipse.jetty.server.Server;
|
||||
|
|
|
@ -130,7 +130,7 @@ public class WebAppContextTest
|
|||
* @param name the name of the war
|
||||
* @return the Path of the generated war
|
||||
*
|
||||
* @throws Exception
|
||||
* @throws Exception if the war could not be created
|
||||
*/
|
||||
private Path createWar(Path tempDir, String name) throws Exception
|
||||
{
|
||||
|
@ -950,7 +950,11 @@ public class WebAppContextTest
|
|||
|
||||
WebAppContext context = new WebAppContext();
|
||||
context.setContextPath("/");
|
||||
Path warPath = MavenPaths.findTestResourceFile("wars/dump.war");
|
||||
|
||||
Path testPath = MavenPaths.targetTestDir("testAddServerClasses");
|
||||
FS.ensureDirExists(testPath);
|
||||
FS.ensureEmpty(testPath);
|
||||
Path warPath = createWar(testPath, "test.war");
|
||||
context.setBaseResource(context.getResourceFactory().newResource(warPath));
|
||||
|
||||
server.setHandler(context);
|
||||
|
@ -974,7 +978,10 @@ public class WebAppContextTest
|
|||
|
||||
WebAppContext context = new WebAppContext();
|
||||
context.setContextPath("/");
|
||||
Path warPath = MavenPaths.findTestResourceFile("wars/dump.war");
|
||||
Path testPath = MavenPaths.targetTestDir("testAddServerClasses");
|
||||
FS.ensureDirExists(testPath);
|
||||
FS.ensureEmpty(testPath);
|
||||
Path warPath = createWar(testPath, "test.war");
|
||||
context.setBaseResource(context.getResourceFactory().newResource(warPath));
|
||||
|
||||
server.setHandler(context);
|
||||
|
|
|
@ -860,7 +860,10 @@ public class WebAppContextTest
|
|||
|
||||
WebAppContext context = new WebAppContext();
|
||||
context.setContextPath("/");
|
||||
Path warPath = MavenPaths.findTestResourceFile("wars/dump.war");
|
||||
Path testPath = MavenPaths.targetTestDir("testAddServerClasses");
|
||||
FS.ensureDirExists(testPath);
|
||||
FS.ensureEmpty(testPath);
|
||||
Path warPath = createWar(testPath, "test.war");
|
||||
context.setBaseResource(context.getResourceFactory().newResource(warPath));
|
||||
|
||||
server.setHandler(context);
|
||||
|
@ -884,7 +887,10 @@ public class WebAppContextTest
|
|||
|
||||
WebAppContext context = new WebAppContext();
|
||||
context.setContextPath("/");
|
||||
Path warPath = MavenPaths.findTestResourceFile("wars/dump.war");
|
||||
Path testPath = MavenPaths.targetTestDir("testAddServerClasses");
|
||||
FS.ensureDirExists(testPath);
|
||||
FS.ensureEmpty(testPath);
|
||||
Path warPath = createWar(testPath, "test.war");
|
||||
context.setBaseResource(context.getResourceFactory().newResource(warPath));
|
||||
|
||||
server.setHandler(context);
|
||||
|
|
Loading…
Reference in New Issue