Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8998203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:59:32+00:00 2026-06-15T23:59:32+00:00

i have 3 datapoints of string array and 2 datapoints of integer array. @DataPoint

  • 0

i have 3 datapoints of string array and 2 datapoints of integer array.

@DataPoint public static Integer[] xxx ={100,200};
@DataPoint public static Integer[] x ={-14,15};
@DataPoint public static String[] xx = new String[]{"de" ,"Y"};
@DataPoint public static String[] cityCode = new String[]{"de" ,"abc"};
 @DataPoint public static String[] city = new String[]{"de" ,"dfg"};


@Theory public void xxx(String[] result ,Integer[] checkdt ) 

when running this testcases it is taking 3 datapoints of string array,but i want to use only 2 datapoints of String array
how can i use only 2 datapoints ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:59:33+00:00Added an answer on June 15, 2026 at 11:59 pm

    You can use Assume to filter the datapoints. At the beginning of the test, add something like:

    @Theory public void xxx(String[] result ,Integer[] checkdt )  {
        Assume.assumeTrue("Y".equals(result[1]);
        // rest of test
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JavaScript array, where each new item added to the array gets
I have a list/frame of 15-25 datapoints. They're all between 0 and 100, and
If I have JSON data such as: { datapoints:[ [null, 1234567890, point1], [null, 1234567890,
I am trying to draw a waveform. I have a precalculated amount of datapoints
I have an example class containing two data points: public enum Sort { First,
Let's say I have a database for storing (numeric) datapoints. Datapoints are grouped together
I am new to WPF, even though I have tried to read as much
I have a requirement to return two different pieces of string data through RPC
I have a chart control in XAML, and datapoints that are bind to the
I have a file that has numerous data points, all formatted like XX.XXX The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.