Skip to main content
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 ...
Manish's user avatar
  • 1,487
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 ...
Kamal Varadarajulu's user avatar
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 ...
Andrew Yi's user avatar
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 ...
Daniel Owen's user avatar
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 ...
c0r3's user avatar
  • 13
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(...
Andre Steenkamp's user avatar
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, ...
Gerard Murphy's user avatar
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 ...
Y. P. Peng's user avatar
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 ...
Serban's user avatar
  • 792
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 ...
Curtis Everingham's user avatar
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 ...
Soroush Shemshadi's user avatar
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(...
SNH's user avatar
  • 1
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 ...
SATHISH BABU's user avatar
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 ...
Doug Hoard's user avatar
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 ...
langio's user avatar
  • 79

15 30 50 per page
1
2 3 4 5
36