534
questions
0
votes
1
answer
8
views
Unexpected test count in IntelliJ after adding JUnit ParameterizedTest with ValueSource
I have a JUnit test that includes @BeforeEach and @AfterEach methods, initially set up to test a single endpoint. It runs fine, and IntelliJ correctly shows Test Passed: 1 of 1 test.
Now, I need to ...
0
votes
0
answers
32
views
Generating parameterized SQL statements with Sequelize for SQL Server
I am working with Sequelize on a SQL Server database, and I'm encountering some challenges with how Sequelize generates SQL statements for querying.
Question: is there any way to configure Sequelize ...
1
vote
1
answer
43
views
SSRS vs PowerBI
I am working on a project that is implementing PowerBI. I come from a SSRS background but I have a team that knows PowerBI. My role in this project is to give report specs to the PowerBI guys and they ...
0
votes
1
answer
72
views
jenkins pipeline build parameterized build button missing
We just rolled out a new Jenkins environment and the parameterized button doens't display in new pipeline creation, but it does in our old environment.
New version is 2.426.1. Old version is 2.401.3
...
0
votes
1
answer
257
views
Parameterized QuarkusTest with TestSecurity
I was wondering if there is a way to parameterize the QuarkustTests and TestSecurity can be parameterized? Currently I have something like this
@QuarkusTest
class MyTest {
@Inject
Testservice ...
0
votes
1
answer
230
views
JUnit 5 Dynamic file path for @CsvFileSource
I use the below to access a csv file in my paramaterized JUnit5 test but is there any way to dynamically provide this csv file or a different file path to the location of the csv file?
@CsvFileSource(...
0
votes
1
answer
54
views
Accessing the `UniqueId` passed to a JUnit5 Session from inside an Extension
Background:
https://github.com/sageserpent-open/americium/issues/69
https://github.com/sageserpent-open/americium/issues/66
These concern an extension that generates test data for a JUnit5 test, ...
0
votes
1
answer
87
views
pymssql cursor execute parameterized query errors
when I try pymssql cursor.execute(query,parameter) with the following query, it works:
SELECT *
FROM Accounts,Ident
WHERE
Accounts.Pat_ID1 = Ident.Pat_ID1 AND
Ident.IDA = %(patient_id)s
The ...
0
votes
0
answers
217
views
JUnit5 - can I parameterize execution of entire test class?
Starting from the following generic code, showing a sample test class that needs to be executed for several rounds of input data:
import java.util.stream.Stream;
import org.junit.jupiter.api.*;
import ...
0
votes
0
answers
154
views
Is it safe to use Python % string operator to compose a Psycopg SQL query as long as values are passed separately to cursor.execute()
There is plenty of material, most notably the "Passing parameters to SQL queries" guide on psycopg.org, covering the security problems with using Python's + or % string operators to merge ...
0
votes
1
answer
716
views
Use MockMvc With Junit Parameterized tests
I need to test APIs with so many test cases. Because of that I deceided to use Junit Parameterized tests.
But I could'nt run my test, because MockMvc does'nt autowierd and it's null.
This is my test ...
0
votes
1
answer
36
views
Invoking a deleted constructor in C++
class one: public two {
public: explicit one (specifier const& use_case);
one() = delete;
void stat(Statistic val);
};
I need to test the above mentioned public interface "void stat(...
0
votes
1
answer
99
views
How to pass a function name in parametrize in pytest and How can i use that in testcase?
In the below script i would like to parametrize functions call RegisterClientCabinMovementDetection(x) and RegisterClientOccupantInSeatDetection(x) (made bold in script)so on... is there any way to ...
1
vote
1
answer
332
views
JUnit 5 / Intellij / custom test engine / method selection issue
I have written a custom JUnit 5 test engine for parameterized testing at the test class level. I have found an issue I can seem to resolve.
When using IntelliJ and running the test class, everything ...
1
vote
0
answers
588
views
Compilation error with Java Generics: Required type 'capture of ? extends MyInterface' when passing object implementing MyInterface
I have defined the class:
public abstract class AbstractFruitHandler<T extends Fruit> {
public abstract void handle(T fruit);
...
}
Where Fruit is an interface.
Example of a class that ...