12 #include "gtest/gtest.h" 107 mesh_params.
set<
unsigned int>(
"nx") = 2;
108 mesh_params.
set<
unsigned int>(
"ny") = 2;
109 mesh_params.
set<
unsigned int>(
"nz") = 2;
111 _mesh->setMeshBase(
_mesh->buildMeshBaseObject());
132 template <
typename T>
136 std::shared_ptr<MooseApp>
_app;
142 template <
typename T>
145 const std::string & name,
149 mooseAssert(objects.size() == 1,
"Doesn't work with threading");
std::string name(const ElemQuality q)
static const std::string name_param
The name of the parameter that contains the object name.
Base class for building basic unit tests for MOOSE actions.
T & addObject(const std::string &type, const std::string &name, InputParameters ¶ms)
Convenience routine for adding an object in an Actions test.
Generic factory class for build all sorts of objects.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
std::shared_ptr< MooseApp > _app
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
InputParameters getValidParams(const std::string &name) const
Get valid parameters for the object.
void buildMinimalObjects()
Some base objects we often need to have the action act on them.
Specialized factory for generic Action System objects.
virtual void runActions()=0
Override this to make the actions execute NOTE: many tasks will auto-register their task at creation...
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual void buildActions()=0
Override this to create the action(s) you want to test.
std::shared_ptr< FEProblem > _fe_problem
std::unique_ptr< MooseApp > createMooseApp(const std::string &default_app_type, int argc, char *argv[])
Create a MooseApp from command-line arguments.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
ActionFactory & _action_factory
std::unique_ptr< MooseObject > createUnique(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
Build an object (must be registered) - THIS METHOD IS DEPRECATED (Use create<T>()) ...
std::unique_ptr< MooseMesh > _mesh
ActionUnitTest(const std::string &app_name)