@Test(timeout=300000) @JUnitTemporaryDatabase @Transactional public void testImportUtf8() throws Exception { m_provisioner.importModelFromResource(new ClassPathResource("/utf-8.xml"), true); assertEquals(1, getNodeDao().countAll()); final OnmsNode onmsNode = getNodeDao().get(1); LogUtils.debugf(this, "node = %s", onmsNode); assertEquals("\u00f1ode2", onmsNode.getLabel()); }
protected void importModelFromResource(final Resource resource, final Boolean rescanExisting) throws Exception { importModelFromResource(resource, rescanExisting, new NoOpProvisionMonitor()); }
Provisioner implements SpringServiceDaemon { protected void importModelFromResource(final Resource resource, final Boolean rescanExisting) throws Exception { importModelFromResource(resource, rescanExisting, new NoOpProvisionMonitor()); } }
Provisioner implements SpringServiceDaemon { protected void importModelFromResource(final Resource resource, final Boolean rescanExisting) throws Exception { importModelFromResource(resource, rescanExisting, new NoOpProvisionMonitor()); }  }
Provisioner implements SpringServiceDaemon { protected void importModelFromResource(final Resource resource, final Boolean rescanExisting) throws Exception { importModelFromResource(resource, rescanExisting, new NoOpProvisionMonitor()); }  void setProvisionService(ProvisionService provisionService); ProvisionService getProvisionService(); void setScheduledExecutor(ScheduledExecutorService scheduledExecutor); void setLifeCycleRepository(LifeCycleRepository lifeCycleRepository); void setImportSchedule(ImportScheduler schedule); void setImportActivities(CoreImportActivities importActivities); void setTaskCoordinator(DefaultTaskCoordinator taskCoordinator); void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory); ImportScheduler getImportSchedule(); @Override void start(); @Override void destroy(); @Override void afterPropertiesSet(); void doNodeScan(int nodeId); NodeScan createNodeScan(Integer nodeId, String foreignSource, String foreignId); NewSuspectScan createNewSuspectScan(InetAddress ipAddress); ScheduledFuture<?> getScheduledFutureForNode(int nodeId); int getScheduleLength(); ThreadCategory log(); void setEventForwarder(EventForwarder eventForwarder); EventForwarder getEventForwarder(); void doImport(); @EventHandler(uei = EventConstants.RELOAD_IMPORT_UEI) void doImport(final Event event); void doImport(final String url, final boolean rescanExisting); @EventHandler(uei = EventConstants.NODE_ADDED_EVENT_UEI) void handleNodeAddedEvent(Event e); @EventHandler(uei = EventConstants.FORCE_RESCAN_EVENT_UEI) void handleForceRescan(Event e); @EventHandler(uei = EventConstants.NEW_SUSPECT_INTERFACE_EVENT_UEI) void handleNewSuspectEvent(Event e); @EventHandler(uei = EventConstants.NODE_UPDATED_EVENT_UEI) void handleNodeUpdated(Event e); @EventHandler(uei = EventConstants.NODE_DELETED_EVENT_UEI) void handleNodeDeletedEvent(Event e); @EventHandler(uei = EventConstants.RELOAD_DAEMON_CONFIG_UEI) void handleReloadConfigEvent(Event e); @EventHandler(uei=EventConstants.ADD_INTERFACE_EVENT_UEI) void handleAddInterface(Event event); @EventHandler(uei=EventConstants.ADD_NODE_EVENT_UEI) void handleAddNode(Event event); @EventHandler(uei=EventConstants.CHANGE_SERVICE_EVENT_UEI) void handleChangeService(Event event); @EventHandler(uei=EventConstants.DELETE_INTERFACE_EVENT_UEI) void handleDeleteInterface(Event event); @EventHandler(uei=EventConstants.DELETE_NODE_EVENT_UEI) void handleDeleteNode(Event event); @EventHandler(uei=EventConstants.DELETE_SERVICE_EVENT_UEI) void handleDeleteService(Event event); @EventHandler(uei=EventConstants.UPDATE_SERVER_EVENT_UEI) void handleUpdateServer(Event event); @EventHandler(uei=EventConstants.UPDATE_SERVICE_EVENT_UEI) void handleUpdateService(Event event); String getStats(); }
Provisioner implements SpringServiceDaemon { protected void importModelFromResource(final Resource resource, final Boolean rescanExisting) throws Exception { importModelFromResource(resource, rescanExisting, new NoOpProvisionMonitor()); }  void setProvisionService(ProvisionService provisionService); ProvisionService getProvisionService(); void setScheduledExecutor(ScheduledExecutorService scheduledExecutor); void setLifeCycleRepository(LifeCycleRepository lifeCycleRepository); void setImportSchedule(ImportScheduler schedule); void setImportActivities(CoreImportActivities importActivities); void setTaskCoordinator(DefaultTaskCoordinator taskCoordinator); void setAgentConfigFactory(SnmpAgentConfigFactory agentConfigFactory); ImportScheduler getImportSchedule(); @Override void start(); @Override void destroy(); @Override void afterPropertiesSet(); void doNodeScan(int nodeId); NodeScan createNodeScan(Integer nodeId, String foreignSource, String foreignId); NewSuspectScan createNewSuspectScan(InetAddress ipAddress); ScheduledFuture<?> getScheduledFutureForNode(int nodeId); int getScheduleLength(); ThreadCategory log(); void setEventForwarder(EventForwarder eventForwarder); EventForwarder getEventForwarder(); void doImport(); @EventHandler(uei = EventConstants.RELOAD_IMPORT_UEI) void doImport(final Event event); void doImport(final String url, final boolean rescanExisting); @EventHandler(uei = EventConstants.NODE_ADDED_EVENT_UEI) void handleNodeAddedEvent(Event e); @EventHandler(uei = EventConstants.FORCE_RESCAN_EVENT_UEI) void handleForceRescan(Event e); @EventHandler(uei = EventConstants.NEW_SUSPECT_INTERFACE_EVENT_UEI) void handleNewSuspectEvent(Event e); @EventHandler(uei = EventConstants.NODE_UPDATED_EVENT_UEI) void handleNodeUpdated(Event e); @EventHandler(uei = EventConstants.NODE_DELETED_EVENT_UEI) void handleNodeDeletedEvent(Event e); @EventHandler(uei = EventConstants.RELOAD_DAEMON_CONFIG_UEI) void handleReloadConfigEvent(Event e); @EventHandler(uei=EventConstants.ADD_INTERFACE_EVENT_UEI) void handleAddInterface(Event event); @EventHandler(uei=EventConstants.ADD_NODE_EVENT_UEI) void handleAddNode(Event event); @EventHandler(uei=EventConstants.CHANGE_SERVICE_EVENT_UEI) void handleChangeService(Event event); @EventHandler(uei=EventConstants.DELETE_INTERFACE_EVENT_UEI) void handleDeleteInterface(Event event); @EventHandler(uei=EventConstants.DELETE_NODE_EVENT_UEI) void handleDeleteNode(Event event); @EventHandler(uei=EventConstants.DELETE_SERVICE_EVENT_UEI) void handleDeleteService(Event event); @EventHandler(uei=EventConstants.UPDATE_SERVER_EVENT_UEI) void handleUpdateServer(Event event); @EventHandler(uei=EventConstants.UPDATE_SERVICE_EVENT_UEI) void handleUpdateService(Event event); String getStats(); static final String NAME; }