@Test public void testHomeFeature() throws BackgroundException { final Path drive = new MantaHomeFinderFeature(session).find(); assertNotNull(drive); assertFalse(drive.isRoot()); assertTrue(drive.isPlaceholder()); assertNotEquals("null", drive.getName()); assertFalse(StringUtils.isEmpty(drive.getName())); }
@Override public Path find() throws BackgroundException { final Path home = super.find(); if(home == DEFAULT_HOME) { return new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath()).getNormalizedHomePath(); } return home; }
MantaHomeFinderFeature extends DefaultHomeFinderService { @Override public Path find() throws BackgroundException { final Path home = super.find(); if(home == DEFAULT_HOME) { return new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath()).getNormalizedHomePath(); } return home; } }
MantaHomeFinderFeature extends DefaultHomeFinderService { @Override public Path find() throws BackgroundException { final Path home = super.find(); if(home == DEFAULT_HOME) { return new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath()).getNormalizedHomePath(); } return home; } MantaHomeFinderFeature(final MantaSession session); }
MantaHomeFinderFeature extends DefaultHomeFinderService { @Override public Path find() throws BackgroundException { final Path home = super.find(); if(home == DEFAULT_HOME) { return new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath()).getNormalizedHomePath(); } return home; } MantaHomeFinderFeature(final MantaSession session); @Override Path find(); }
MantaHomeFinderFeature extends DefaultHomeFinderService { @Override public Path find() throws BackgroundException { final Path home = super.find(); if(home == DEFAULT_HOME) { return new MantaAccountHomeInfo(session.getHost().getCredentials().getUsername(), session.getHost().getDefaultPath()).getNormalizedHomePath(); } return home; } MantaHomeFinderFeature(final MantaSession session); @Override Path find();  }