Skip to content

Named arguments with variable length Objects #2740

Answered by sbrannen
ktrueda asked this question in Q&A
Discussion options

You must be logged in to vote

Only the file is a "named" argument.

Use the following to achieve your goal.

	static Stream<Arguments> namedArguments() {
		return Stream.of(
			arguments(named("An important file", new File("path1")), "foo"),
			arguments(named("Another file", new File("path2")), "bar")
		);
	}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ktrueda
Comment options

@sbrannen
Comment options

@ktrueda
Comment options

Answer selected by ktrueda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants