aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-squid
Commit message (Expand)AuthorAgeFilesLines
* SONAR-2875 API: deprecate the interface org.sonar.squid.api.CodeCheckSimon Brandhof2011-10-072-11/+13
* Upgrade version to 2.12-SNAPSHOTSimon Brandhof2011-09-161-1/+1
* Revert pom versions to 2.11-SNAPSHOT after merging branch 2.10Simon Brandhof2011-08-151-1/+1
* [maven-release-plugin] prepare for next development iterationSimon Brandhof2011-08-091-1/+1
* [maven-release-plugin] prepare release 2.10-RC2Simon Brandhof2011-08-091-1/+1
* Upgrade version to 2.11-SNAPSHOTSimon Brandhof2011-08-051-1/+1
* Upgrade version to 2.10-SNAPSHOTSimon Brandhof2011-07-111-1/+1
* temporary reverting to 2.9-SNAPSHOTsimonbrandhof2011-07-101-1/+1
* Upgrade to version 2.10-SNAPSHOTsimonbrandhof2011-07-101-1/+1
* Fix violationsEvgeny Mandrikov2011-05-292-17/+15
* Upgrade to version 2.9-SNAPSHOTsimonbrandhof2011-05-131-1/+1
* Temporarily downgrade version to 2.8-SNAPSHOTsimonbrandhof2011-05-101-1/+1
* Upgrade version to 2.9-SNAPSHOTsimonbrandhof2011-05-091-1/+1
* Release 2.8-RC2simonbrandhof2011-05-091-1/+1
* Prepare for next development iterationEvgeny Mandrikov2011-05-031-1/+1
* Prepare 2.8-RC1Evgeny Mandrikov2011-05-031-1/+1
* Upgrade master to version 2.8-SNAPSHOTsimonbrandhof2011-03-291-1/+1
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2011-03-281-1/+1
* [maven-release-plugin] prepare release 2.7-RC3simonbrandhof2011-03-281-1/+1
* Fix coding violationssimonbrandhof2011-03-271-0/+1
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2011-03-221-1/+1
* [maven-release-plugin] prepare release 2.7-RC1simonbrandhof2011-03-221-1/+1
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2011-03-181-1/+1
* [maven-release-plugin] prepare release 2.7-RC2simonbrandhof2011-03-181-1/+1
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2011-02-181-1/+1
* [maven-release-plugin] prepare release 2.62.6simonbrandhof2011-02-181-1/+1
* Upgrade copyright headerssimonbrandhof2011-02-0486-86/+86
* SONAR-2159 The total classes used in complexity distribution is different tha...simonbrandhof2011-02-012-5/+34
* Add profile to check copyright headers + fix some badly formatted headerssimonbrandhof2011-01-3186-3/+183
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2011-01-281-1/+1
* [maven-release-plugin] prepare release 2.6-M1simonbrandhof2011-01-281-1/+1
* Squid for Java : remove unused codesimonbrandhof2011-01-242-13/+0
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2011-01-051-1/+1
* [maven-release-plugin] prepare release 2.5-RC1simonbrandhof2011-01-051-1/+1
* revert trunk version to 2.5-SNAPSHOTsimonbrandhof2010-12-271-1/+1
* [maven-release-plugin] prepare release 2.5simonbrandhof2010-12-241-1/+1
* Instead of 'bypassExclusionMechanism' use 'bypassExclusion' in CheckMessageGodin2010-11-291-5/+5
* Instead of 'force' use more meaningful name 'bypassExclusionMechanism' in Che...Godin2010-11-291-5/+5
* SONAR-1760: Support the annotation "@SuppressWarnings" at class and method levelGodin2010-11-262-0/+26
* SONAR-1817: Squid rule to create violation on each NOSONAR tag occurenceGodin2010-11-262-1/+11
* SONAR-1845: Create a new Sonar rule to check method complexityGodin2010-11-141-0/+9
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2010-11-091-1/+1
* [maven-release-plugin] prepare release 2.4-RC1simonbrandhof2010-11-091-1/+1
* SONAR-1901: Add new rule to report on "Undocumented API"Godin2010-10-281-4/+4
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2010-10-121-1/+1
* [maven-release-plugin] prepare release 2.3simonbrandhof2010-10-121-1/+1
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2010-10-051-1/+1
* [maven-release-plugin] prepare release 2.3-RC2simonbrandhof2010-10-051-1/+1
* upgrade trunk to 2.4-SNAPSHOTsimonbrandhof2010-09-301-1/+1
* [maven-release-plugin] prepare for next development iterationsimonbrandhof2010-09-301-1/+1
an class="o">= User.find(2) events = Redmine::Activity::Fetcher.new(User.anonymous, :author => user).events(nil, nil, :limit => 10) assert(events.size > 0) assert(events.size <= 10) assert_nil(events.detect {|e| e.event_author != user}) end def test_files_activity f = Redmine::Activity::Fetcher.new(User.anonymous, :project => Project.find(1)) f.scope = ['files'] events = f.events assert_kind_of Array, events assert events.include?(Attachment.find_by_container_type_and_container_id('Project', 1)) assert events.include?(Attachment.find_by_container_type_and_container_id('Version', 1)) assert_equal [Attachment], events.collect(&:class).uniq assert_equal %w(Project Version), events.collect(&:container_type).uniq.sort end def test_event_group_for_issue issue = Issue.find(1) assert_equal issue, issue.event_group end def test_event_group_for_journal issue = Issue.find(1) journal = issue.journals.first assert_equal issue, journal.event_group end def test_event_group_for_issue_time_entry time = TimeEntry.where(:issue_id => 1).first assert_equal time.issue, time.event_group end def test_event_group_for_project_time_entry time = TimeEntry.where(:issue_id => nil).first assert_equal time, time.event_group end def test_event_group_for_message message = Message.find(1) reply = message.children.first assert_equal message, message.event_group assert_equal message, reply.event_group end def test_event_group_for_wiki_content_version content = WikiContent::Version.find(1) assert_equal content.page, content.event_group end private def find_events(user, options={}) Redmine::Activity::Fetcher.new(user, options).events(Date.today - 30, Date.today + 1) end end