True if the type is protected; false otherwise. Returns true if this type is an instance of one of the provided canonical names or has a test class; those Contains the key of this annotation (key, value) pair. Use special prefixes for test class members containing dependencies and/or mocks, Use special prefixes for local fields containing test method parameters and/or as a canonical name. and parameter that should contain a broken I/O value for the test case. True if the source class is a data transfer object (DTO) bean that contains an Input I/O Returns a list excluding items with property: attrNameExp and a value of true. This allows templates to include "throws Exception" on all generated methods instead of needing to determine whether Returns a list excluding items with property: attrNameExp and a value of true. the type. Returns a MutableObject
Squaretest generates special tests for the static creator methods. by the java Returns whether or not a class with the given canonical name is in the classpath of the The primary flow where the deals service returns a list containing one item. local variable. The normal Squaretest build is the version of Squaretest that is installed by default when you True if the subject DependencyInteraction should return a failure value. The average developer creates one new test class every 2 weeks. The alternate flow where an internal service error occurred while processing the request. Sets the minimum number of setters to call when initializing a top-level bean. The dependency interaction that is the subject of this test. Indicates whether the template should use the JUnit5 mockito extension (in JUnit5 templates) or the JUnit4 mockito runner Informs CodeStyleUtils this is the start of a Java or Groovy method. about the generated Java code being over-indented.
Otherwise, this contains the name of the Contains all public static fields in source class. These include the The Uri is instantiated by invoking the static creator method: searchValues. The base uri path for the spring controller under test, or '' if one is not set. The Sets the maximum number of setters to call when initializing a top-level bean. names. expression. This allows you to use fully qualified names throughout the template without having The primary flow where the new deal is created successfully. True if Squaretest has inferred this method can return either null or an "absent" value; The primary flow where the deals service and order service both return one item. The alternate flow where the order could not be retrieved due to a network error. If set to Returns the second item in the list or null if the list contains fewer than two items. arguments) with by logic in the template code based on the Quick Settings. The declared type of the argument. The list of all model attribute provider methods in the source class and its super classes. Contains all fields (static and instance) in the source class. for ClassMembers, this is the name with any recognized leading prefix (_, __, m, my, determined by the IDE code style settings. Returns true if the provided DependencyInteraction should return an empty value.
More formally, a DependencyInteraction di is included in the list if Contains all protected static fields in source class. Otherwise, this contains the name of the True if the method is public; false otherwise. Returns true if the provided DependencyInteraction should throw an exception in this test case. The alternate flow where the text specified in the request was too large.
matching the Returns a FluentList containing DependencyInteractions These are no longer used. only asks the user to confirm which Contains the canonical name if it is non-null. types. The list of controller methods in the source class. True if the source method is expected to return null. Mockito.spy(..). provided prefixes.
True if Squaretest has inferred this method can return null. e.g. This is similar to the sealed abstract class pattern used in the Android Uri class. S3Object in the AWS SDK V1 API. All private static methods in the source class. The suffix to append to the test method name to avoid method-name conflicts in the test dependency interaction that should throw an exception and the exception that should be thrown. @Autowired), Class with package-local, dependency-annotated fields (common in Android apps using, Class with static creator methods like parse(..) or from(..) but no package-visible These will be shortened automatically in the. set to mockable; this may be modified by logic in the template code based on the Quick mocks. method enables Returns true if this class is an instance of all of the provided canonical names. values; e.g. Returns the union of this list and the provided Iterable using the attribute value Returns whether or not the list contains any items with at least one annotation that Attempts to remove the package qualifiers from the provided canonical text and returns Returns whether or not the list contains an item with property: attrNameExp and a value provided Squaretest looks for annotations indicating whether or not a method can return null. Optional.empty(). The source class is the JavaVersion enum copied from Apache Commons Lang 3. Returns a list containing items after obj or an empty list of obj is not present in the Contains all getter methods do not have bounds for the list.
The return type of the method or null if the method has none. The exception the source method is expected to throw. declaredName; True if the type is simple. Squaretest from the IntelliJ plugin repository. downloaded. Contains "openMocks" if $hasOpenMocksMethod is true; otherwise, this contains "initMocks". Returns the values in the enum if source class is an enum; otherwise, returns the empty For ClassMembers, It provides APIs for determining For most The declaredName with any prefixes removed; for method parameters, this is just the For ClassMembers, this is determined based on the containing the following keys and values. The alternate flow where the service returns a response indicating the resource specified in the request was not available. and the IDE code style settings; this may be modified by logic in Engine,
Mutable field containing the name of the member used to store an instance of the source Returns a MutableObject with the specified value. The alternate flow where the service returns an error. Represents an empty value for this type; e.g. Contains all super classes and interfaces of this source class. Returns a list excluding all items equal to itemToRemove. treated True if the variable is declared to be final. The key is the canonical name of the type. null. at least package-local access or higher (Public, Protected or Package Local). Squaretest generates tests for each instance method in the enum. prefixes. template code will use your IDE code style settings instead. "? class on which the method was called. The name of the member used to store an instance of the source class. annotations. Returns a TestInfo representing the primary flow test case for the provided source method and listToAppend. Contains all public instance fields in source class. Contains the innermost component type for the array, if this type is an array. source class. type. The expression needed to access the instance of the singleton if source class is a Returns a TestInfo object with the provided sourceMethod, mocked dependency interactions Returns a MutableObject
The actual type of the argument. the template code based on the Quick Settings. dot (.) Optional.empty(). scenario). This is equivalent True if the type is nested inside a class. This is usually "null".
If set to true, the template will use mocks for any mockable method parameter whose name All protected static methods in the source class. them appear in spec if applicable. Android activity (Robolectric3 and AndroidJUnit4 templates only), Spring controllers (Spring templates only). Contains the list of type parameters for this type. True if the member is declared to be transient. was invoked. will be The alternate flow where S3 could not be reached due to a network error on the client side. True if Spring components consider this type to be a simple value type; see. This is the same as the type in the corresponding, Constructor is the same as Method, but implements. annotations parameter may contain simple names or canonical names. on each element of this list. treated Contains information about the method call; e.g. Contains the annotations on the Variable. The alternate flow where the order service returns an error. the same method. The list: annotationNames can include simple and canonical names. this it was created from; for method parameters, this contains the name of the newlines. True if the type is a data transfer object (DTO) bean that contains an Input I/O True if the subject DependencyInteraction should return an absent value. Contains the list of preferred setters to use to initialize the source class. Velocity language spec if applicable. containing, Local variables for arguments required by the method, Mockito stubs; i.e. and parameter that should contain an empty I/O value for the test case. Settings. Returns true if the provided DependencyInteraction should return an empty I/O value. Contains all protected instance fields in source class. The alternate flow where the order could not be retrieved due to a service error. Returns whether or not this Variable is annotated with one of the provided annotation Alternate flow tests for some AWS SDK APIs that return absent or empty values. Collections.emptyList(), or null if there Contains the canonical names of all super classes and interfaces of this class. the same method. provided regular having to worry Mutable field indicating whether or not this type should be spied; i.e. True if the type is mockable (non-final, non-static and not an enum). Contains the package name from the package declaration statement in source class. parameter. A String containing a Java expression that evaluates to an instance of the Contains all instance fields in source class. True if the type is primitive; false otherwise. Contains all static fields in source class. This abstract methods. from(..) or of(..). Returns the list of items with property: attrNameExp and a value that starts with one of
Mutable property containing the source method parameter that should contain an empty I/O value in this test
could not be determined.
All private instance methods in the source class.
True if the method is protected; false otherwise. Developers modify the list by adding items to the returned list. the whose field.possibleSourceVariables contain no elements in common with the provided is provided prefixes. dot (.) Don't worry about having extra newlines (more than 1 empty-line) between sections of the Squaretest uses very basic Natural Language Processing (NLP) to determine if the Javadocs indicate a method can return null. The list of exceptions declared in the method's Javadoc tags.