Package org.testng

Examples of org.testng.SkipException


                marshaller.writeObject(ext3);
            }

            public void runRead(final Unmarshaller unmarshaller) throws Throwable {
                if ((unmarshaller instanceof RiverUnmarshaller) && version.get() < 1) {
                    throw new SkipException("River v0 can't detect eof on each object");
                }
                final TestExternalizableWithSerializableFields rext1 = (TestExternalizableWithSerializableFields) unmarshaller.readObject();
                final TestExternalizableWithSerializableFields rext2 = (TestExternalizableWithSerializableFields) unmarshaller.readObject();
                final TestExternalizableWithSerializableFields rext3 = (TestExternalizableWithSerializableFields) unmarshaller.readObject();
                assertTrue("No EOF", unmarshaller.read() == -1);
View Full Code Here


                marshaller.writeObject(map);
            }

            public void runRead(final Unmarshaller unmarshaller) throws Throwable {
                if ((unmarshaller instanceof RiverUnmarshaller) && version.get() < 1) {
                    throw new SkipException("River v0 can't detect eof on each object");
                }
                final Object m1 = unmarshaller.readObject();
                assertEquals(HashMap.class, m1.getClass());
                assertSame(m1, unmarshaller.readObject());
                assertEOF(unmarshaller);
View Full Code Here

                });
            }

            public void runWrite(final Marshaller marshaller) throws Throwable {
                if (marshaller instanceof ObjectOutputStreamMarshaller) {
                    throw new SkipException("Skip for " + marshaller);
                }
                marshaller.writeObject(orig);
                marshaller.writeObject(orig);
            }

            public void runRead(final Unmarshaller unmarshaller) throws Throwable {
                try {
                    if (unmarshaller instanceof ObjectInputStreamUnmarshaller) {
                        throw new SkipException("Skip for " + unmarshaller);
                    }
                    if (unmarshaller instanceof SerialUnmarshaller) {
                        throw new SkipException("Functionality not yet supported on serial unmarshalling");
                    }
                    final NewRem1 object = unmarshaller.readObject(NewRem1.class);
                    assertEquals(object.getFoo(), orig.getFoo());
                    assertSame(unmarshaller.readObject(), object);
                } catch (NullPointerException npe) {
View Full Code Here

        private final Marshaller marshaller;

        private MyObjectOutputStream(final MarshallingConfiguration config, final OutputStream out) throws IOException {
            super(out);
            if (config.getClassTable() != null) {
                throw new SkipException("class tables not supported");
            }
            if (config.getObjectTable() != null) {
                throw new SkipException("object tables not supported");
            }
            if (config.getClassExternalizerFactory() != null) {
                throw new SkipException("externalizers not supported");
            }
            final ObjectResolver objectResolver = config.getObjectResolver();
            this.objectResolver = objectResolver == null ? Marshalling.nullObjectResolver() : objectResolver;
            final ClassResolver classResolver = config.getClassResolver();
            this.classResolver = classResolver == null ? new SimpleClassResolver(getClass().getClassLoader()) : classResolver;
View Full Code Here

            classResolver.annotateClass(marshaller, cl);
        }

        protected Object replaceObject(final Object obj) throws IOException {
            if (obj.getClass().getAnnotation(Externalize.class) != null) {
                throw new SkipException("@Externalize object serialization not supported");
            }
            return objectResolver.writeReplace(obj);
        }
View Full Code Here

   static Location findNonDefaultLocationOrSkip(BlobStore blobStore, Location defaultLocation) {
      List<? extends Location> locs = Lists.newArrayList(Iterables.filter(blobStore.listAssignableLocations(),
               Predicates.not(Predicates.equalTo(defaultLocation))));
      if (locs.size() == 0)
         throw new SkipException("No non-default location found in " + locs);
      // try to use a diverse location
      Collections.shuffle(locs);
      return locs.get(0);
   }
View Full Code Here

            Strings2.toString(view.utils().http().invoke(request).getPayload());
            fail("Temporary URL did not expire as expected");
         } catch (AuthorizationException expected) {
         }
      } catch (UnsupportedOperationException ignore) {
         throw new SkipException("signGetUrl with a time limit is not supported on " + provider);
      } finally {
         returnContainer(container);
      }
   }
View Full Code Here

            Strings2.toString(view.utils().http().invoke(request).getPayload());
            fail("Temporary URL did not expire as expected");
         } catch (AuthorizationException expected) {
         }
      } catch (UnsupportedOperationException ignore) {
         throw new SkipException("signPutUrl with a time limit is not supported on " + provider);
      } finally {
         returnContainer(container);
      }
   }
View Full Code Here

   @Override
   public void testDirectory() throws InterruptedException {
      // S3 does not support directories, rather it supports prefixes which look
      // like directories.  We should filter out the fake RELATIVE_PATH.
      throw new SkipException("not yet implemented");
   }
View Full Code Here

   }

   @Override
   @Test
   public void testSignGetBlobWithTime() {
      throw new SkipException("not yet implemented");
   }
View Full Code Here

TOP

Related Classes of org.testng.SkipException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.