<commit_before># --
# ValidateDemo.t - ValidateDemo testscript
# Copyright (C) 2001-2014 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

use strict;
use warnings;
use utf8;
use vars qw($Self);

use Kernel::Config;
use Kernel::System::ProcessManagement::TransitionValidation::ValidateDemo;

use Kernel::System::VariableCheck qw(:all);

my $ConfigObject = $Kernel::OM->Get('ConfigObject');
my $ValidationObject
    = Kernel::System::ProcessManagement::TransitionValidation::ValidateDemo->new(
    %{$Self},
    ConfigObject => $ConfigObject,
    );

# Sanity check
$Self->Is(
    ref $ValidationObject,
    'Kernel::System::ProcessManagement::TransitionValidation::ValidateDemo',
    "ValidationObject created successfully",
);
<commit_msg>Switched process management tests to the object manager.<commit_after># --
# ValidateDemo.t - ValidateDemo testscript
# Copyright (C) 2001-2014 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

use strict;
use warnings;
use utf8;

use vars (qw($Self));

use Kernel::System::VariableCheck qw(:all);

# get needed objects
my $ConfigObject     = $Kernel::OM->Get('Kernel::Config');
my $HelperObject     = $Kernel::OM->Get('Kernel::System::UnitTest::Helper');
my $ValidationObject = $Kernel::OM->Get('Kernel::System::ProcessManagement::TransitionValidation::ValidateDemo');

# sanity check
$Self->Is(
    ref $ValidationObject,
    'Kernel::System::ProcessManagement::TransitionValidation::ValidateDemo',
    "ValidationObject created successfully",
);

{'fraction_non_alphanumeric': 0.14186666666666667, 'fraction_numerical': 0.0096, 'mean_word_length': 5.359322033898305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4670106', 'n_tokens_mistral': 572, 'n_tokens_neox': 550, 'n_words': 148}