tail -f /logs/catalina.out
@Mock
private UserRepository mockRepository;
@InjectMock
private UserController controller;
mvc = MockMvcBuilders.standaloneSetup(controller).build();
when(mockRepository.findAll()).thenReturn(Arrays.asList(new User[] { user }));
ожидаем что оно произойдетmvc.perform(get(route)).andExpect(content().string(containsString(new Gson().toJson(user))));
#!/bin/bash
# https://www.utf8-chartable.de/unicode-utf8-table.pl?start=1024
shopt -s nullglob
shopt -s nocasematch
for NAME in $(ls -1 *) ; do
OLDNAME=$NAME
NEWNAME=$NAME
NEWNAME=${NEWNAME//%d0%bf/п};
NEWNAME=${NEWNAME//%d1%81/с};
# ... и т.д.
echo mv $OLDNAME $NEWNAME
done
./translit_utf8_utf8.sh
mv %D0%BF%D1%81.txt пс.txt
using OpenQA.Selenium;
using OpenQA.Selenium.Internal;
IJavaScriptExecutor jsExecutor = driver as IJavaScriptExecutor;
jsExecutor.ExecuteScript(script, new Object[] { .... });
https://stackoverflow.com/questions/45130993/how-t...