Commit d39de602 authored by Kim Oyama's avatar Kim Oyama
Browse files

PROG Fixed unit test. References #988.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5702 41f8697f-d340-4b68-9986-7bafba869bb8
parent 002ea3cd
Loading
Loading
Loading
Loading
+2 −1
Changes for isis/src/base/objs/ProjectionFactory/ProjectionFactory.truth: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -71,4 +71,5 @@ End
Test for ProjectionFactory's Create with unsupported projection
**I/O ERROR** Unable to initialize Projection information from group [Mapping].
**ERROR** Unsupported projection, unable to find plugin for [UnsupportedProjection].
**ERROR** Unable to find PVL group [UnsupportedProjection] in file [/work/projects/isis/latest/m01894/isis/lib/Projection.plugin].
**ERROR** Unable to find PVL group [UnsupportedProjection] in file [isis/lib/Projection.plugin].
+8 −4
Changes for isis/src/base/objs/ProjectionFactory/unitTest.cpp: 8 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -10,12 +10,13 @@
using namespace Isis;
using namespace std;

int main(int argc, char *argv[]) {
  Preference::Preferences(true);

void ReportError(QString err);
  void doit(Pvl & lab);
  void doit2(Pvl & lab);

int main(int argc, char *argv[]) {
  Preference::Preferences(true);

  try {
    cout << "Unit test for ProjectionFactory" << endl;

@@ -131,7 +132,7 @@ int main(int argc, char *argv[]) {
    proj->SetWorld(245.0, 355.0);
  }
  catch(IException &e) {
    e.print();
    ReportError( e.toString() );
  }
}

@@ -156,4 +157,7 @@ void doit2(Pvl &lab) {
  cout << endl;
}

void ReportError(QString err) {
  cout << err.replace(QRegExp("\\[[^\\]]*\\.plugin\\]"), "[isis/lib/Projection.plugin]") << endl << endl;
}