public class ResourceTestUtils extends Object
| Constructor and Description |
|---|
ResourceTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Path |
getResource(String resourceNameRegex)
Searches for a resource file matching the given regex in the given directory.
|
public static Path getResource(String resourceNameRegex)
Path fields for
resource file(i.e. jar, config file) that reside in the modules target directory.resourceNameRegex - regex pattern to match againstRuntimeException - if none or multiple resource files could be foundCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.