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

  • SEARCH
  • Home
  • 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 7691309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:35:37+00:00 2026-05-31T20:35:37+00:00

Given a certain set of parameters is it possible to stop a set of

  • 0

Given a certain set of parameters is it possible to stop a set of tests against a single parameter.

@RunWith(Parameterized.class)
public class Test{
    public Test(String a, String b){
        if(!a.equals(b)){
            // Stop do not run tests
        } // else go on run tests
    }
}
@Parameters
public static Collection<Object[]> getParams(){
    return  Array.asList(new Object[][]{ {"aa","aa"},{"aa","bb"} };
}
@Test
public void test1(){ assertTrue(false); }

Did not test the code above just to give an idea what I am trying to accomplish. The constructor is actually trying to gain resources and if a resource fails to be acquired I do not want the tests to be attempted.

Thank you

  • 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-05-31T20:35:38+00:00Added an answer on May 31, 2026 at 8:35 pm

    You can move your logic into getParams() method, so if you can’t “gain resources” there, you can simply return an empty collection of parameters, so nothing to run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given an app (your app) and a certain action it has, is it possible
Given a table where the first column is seconds past a certain reference point
Given a filename, I need to be able to access certain metadata in an
If I have a certain week number (eg 51) and a given year (eg
if i have a function A,which can apply a certain rule on a given
I have a some code that gets passed a class derived from a certain
given to certain circumstances, I'm forced to keep page settings (Javascript-values) in the session
Short summary: When you want to predefine certain instantiations of a class, is it
Is it possible to explicitly set the id of a domain object in Grails'
Given the following set of records, I'd like to return the first occurrence of

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.