Changeset 13205
- Timestamp:
- 06/04/08 15:31:58 (5 years ago)
- Location:
- lang/perl/XMPP-Bomber/trunk
- Files:
-
- 3 added
- 3 modified
-
lib/XMPP/Bomber/Client/Flooder.pm (modified) (1 diff)
-
lib/XMPP/Bomber/RecipientChooser (added)
-
lib/XMPP/Bomber/RecipientChooser/Static.pm (added)
-
lib/XMPP/Bomber/Role/Client.pm (modified) (2 diffs)
-
lib/XMPP/Bomber/Role/RecipientChooser.pm (added)
-
t/client/01_flood.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/XMPP-Bomber/trunk/lib/XMPP/Bomber/Client/Flooder.pm
r13200 r13205 62 62 } 63 63 64 sub choose_recipient 65 { 66 my $self = shift; 67 $self->recipient_chooser->choose( $self->recipients ); 68 } 69 64 70 1; -
lang/perl/XMPP-Bomber/trunk/lib/XMPP/Bomber/Role/Client.pm
r13200 r13205 25 25 ); 26 26 27 has 'recipients' => ( 28 is => 'rw', 29 isa => 'AccountList', 30 auto_deref => 1, 31 required => 1, 32 ); 33 27 34 has 'condvar' => ( 28 35 is => 'rw', … … 33 40 is => 'rw', 34 41 does => 'XMPP::Bomber::Role::ContentProvider' 42 ); 43 44 has 'recipient_chooser' => ( 45 is => 'rw', 46 does => 'XMPP::Bomber::Role::RecipientChooser' 35 47 ); 36 48 -
lang/perl/XMPP-Bomber/trunk/t/client/01_flood.t
r13200 r13205 6 6 use_ok("XMPP::Bomber::Client::Flooder"); 7 7 use_ok("XMPP::Bomber::ContentProvider::Gibberish"); 8 use_ok("XMPP::Bomber::RecipientChooser::Static"); 8 9 } 9 10 … … 20 21 ) 21 22 ], 23 recipients => [], 24 recipient_chooser => XMPP::Bomber::RecipientChooser::Static->new( 25 static_recipient => XMPP::Bomber::Account->new( 26 username => "recipient", 27 domain => "example.com", 28 password => "bar" 29 ) 30 ), 22 31 content_provider => XMPP::Bomber::ContentProvider::Gibberish->new() 23 32 );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)