You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DefaultRepositoryQueryLayerTest.java 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * Copyright (c) 2005 Your Corporation. All Rights Reserved.
  3. */
  4. package org.apache.maven.repository.reporting;
  5. import org.codehaus.plexus.PlexusTestCase;
  6. /**
  7. * Test the artifact reporter.
  8. *
  9. * @author <a href="mailto:jtolentino@mergere.com">John Tolentino</a>
  10. */
  11. public class DefaultRepositoryQueryLayerTest
  12. extends PlexusTestCase
  13. {
  14. private RepositoryQueryLayer queryLayer;
  15. protected void setUp()
  16. throws Exception
  17. {
  18. super.setUp();
  19. queryLayer = (RepositoryQueryLayer) lookup( RepositoryQueryLayer.ROLE, "default" );
  20. }
  21. public void testNonExistingArtifact()
  22. {
  23. assertTrue( queryLayer.containsArtifact( null ) );
  24. }
  25. protected void tearDown()
  26. throws Exception
  27. {
  28. queryLayer = null;
  29. super.tearDown();
  30. }
  31. }
  32. /*
  33. * Copyright (c) 2005 Your Corporation. All Rights Reserved.
  34. */
  35. package org.apache.maven.repository.reporting;
  36. import org.codehaus.plexus.PlexusTestCase;
  37. /**
  38. * Test the artifact reporter.
  39. *
  40. * @author <a href="mailto:jtolentino@mergere.com">John Tolentino</a>
  41. */
  42. public class DefaultRepositoryQueryLayerTest
  43. extends PlexusTestCase
  44. {
  45. private RepositoryQueryLayer queryLayer;
  46. protected void setUp()
  47. throws Exception
  48. {
  49. super.setUp();
  50. queryLayer = (RepositoryQueryLayer) lookup( RepositoryQueryLayer.ROLE, "default" );
  51. }
  52. public void testNonExistingArtifact()
  53. {
  54. assertTrue( queryLayer.containsArtifact( null ) );
  55. }
  56. protected void tearDown()
  57. throws Exception
  58. {
  59. queryLayer = null;
  60. super.tearDown();
  61. }
  62. }
  63. /*
  64. * Copyright (c) 2005 Your Corporation. All Rights Reserved.
  65. */
  66. package org.apache.maven.repository.reporting;
  67. import org.codehaus.plexus.PlexusTestCase;
  68. /**
  69. * Test the artifact reporter.
  70. *
  71. * @author <a href="mailto:jtolentino@mergere.com">John Tolentino</a>
  72. */
  73. public class DefaultRepositoryQueryLayerTest
  74. extends PlexusTestCase
  75. {
  76. private RepositoryQueryLayer queryLayer;
  77. protected void setUp()
  78. throws Exception
  79. {
  80. super.setUp();
  81. queryLayer = (RepositoryQueryLayer) lookup( RepositoryQueryLayer.ROLE, "default" );
  82. }
  83. public void testNonExistingArtifact()
  84. {
  85. assertTrue( queryLayer.containsArtifact( null ) );
  86. }
  87. protected void tearDown()
  88. throws Exception
  89. {
  90. queryLayer = null;
  91. super.tearDown();
  92. }
  93. }