input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetOverlayImage ( ) { edu . illinois . library . cantaloupe . operation . overlay . ImageOverlay overlay = new edu . illinois . library . cantaloupe . operation . overlay . ImageOverlay ( edu . illinois . library . cantaloupe . test . TestUtil . getImage ( "png" ) . toUri ( ) , edu . illinois . library . cantaloupe...
org . junit . Assert . assertNotNull ( edu . illinois . library . cantaloupe . processor . Java2DUtil . getOverlayImage ( overlay ) )
testBuild ( ) { org . lnu . is . domain . studyplan . cycle . StudyPlanCycle context = new org . lnu . is . domain . studyplan . cycle . StudyPlanCycle ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "name" , org . lnu . is . pagination . OrderByType . ASC ) ; org . ln...
org . junit . Assert . assertEquals ( expected , actualQuery )
testAddsFileEntryWithNoFileEntryType ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group . getGroupId ( ) , com . liferay . portal . kernel . test . util . TestPropsValues . getUserId ( ) ) ...
org . junit . Assert . assertEquals ( defaultFileEntryTypeId , dlFileEntry . getFileEntryTypeId ( ) )
testEmptyCigarToEditList ( ) { java . util . List < org . biojava . bio . symbol . Edit > edits = org . nmdp . ngs . tools . FilterConsensus . cigarToEditList ( new htsjdk . samtools . SAMRecord ( new htsjdk . samtools . SAMFileHeader ( ) ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( org . nmdp . ngs . range ....
org . junit . Assert . assertTrue ( edits . isEmpty ( ) )
presetResetToDefault ( ) { java . lang . String db = "test" ; addConfigurationEntry ( preset , "db" , db ) ; addConfigurationEntry ( configuration , "db" , DocumentNodeStoreService . DEFAULT_DB ) ; org . apache . jackrabbit . oak . plugins . document . Configuration config = createConfiguration ( ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( DocumentNodeStoreService . DEFAULT_DB , config . db ( ) )
testPersonStreamPostAllowRelaxed ( ) { "<AssertPlaceHolder>" ; } corePersonStreamInGeneralPostTest ( boolean , boolean ) { final org . eurekastreams . server . search . modelview . PersonModelView person = expectPersonStream ( ) ; mockery . checking ( new org . jmock . Expectations ( ) { { allowing ( person ) . isStrea...
org . junit . Assert . assertTrue ( corePersonStreamInGeneralPostTest ( true , false ) )
testAddNByFunction ( ) { java . lang . String exp = "addN(1,2,3,4)" ; com . ql . util . express . ExpressRunner runner = new com . ql . util . express . ExpressRunner ( ) ; runner . addFunction ( "addN" , new com . ql . util . express . example . operator . AddNOperator ( ) ) ; int r = ( ( java . lang . Integer ) ( run...
org . junit . Assert . assertTrue ( "" , ( r == 10 ) )
shouldGetAllQuestions ( ) { java . util . List < org . mifos . platform . questionnaire . service . QuestionDetail > questionDetailList = java . util . Arrays . asList ( getQuestionDetail ( 1 , "title1" , QuestionType . NUMERIC ) , getQuestionDetail ( 2 , "title2" , QuestionType . NUMERIC ) ) ; when ( questionnaireServ...
org . junit . Assert . assertThat ( view , org . hamcrest . core . Is . is ( "viewQuestions" ) )
when_localParallelismMoreThan1_then_multipleFiles ( ) { com . hazelcast . jet . pipeline . Pipeline p = com . hazelcast . jet . pipeline . Pipeline . create ( ) ; p . drawFrom ( com . hazelcast . jet . pipeline . Sources . < java . lang . String > list ( list . getName ( ) ) ) . drainTo ( com . hazelcast . jet . pipeli...
org . junit . Assert . assertEquals ( 2 , count [ 0 ] )
test_isHttps_true ( ) { org . restfulwhois . rdap . client . service . RdapClientConfig config = new org . restfulwhois . rdap . client . service . RdapClientConfig ( "https://example.com" ) ; "<AssertPlaceHolder>" ; } isHttps ( ) { java . lang . String protocol = getUrl ( ) . substring ( 0 , 5 ) ; java . lang . String...
org . junit . Assert . assertEquals ( true , config . isHttps ( ) )
nullMassNumber ( ) { org . openscience . cdk . interfaces . IAtomContainer container = mock ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; org . openscience . cdk . interfaces . IAtom atom = mock ( org . openscience . cdk . interfaces . IAtom . class ) ; when ( atom . getAtomicNumber ( ) ) . thenRe...
org . junit . Assert . assertThat ( shapes . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testCrossGet ( ) { plainFileAccessor . add ( file , org . apache . commons . io . IOUtils . toInputStream ( ee . shy . storage . accessor . TEST_STRING ) ) ; "<AssertPlaceHolder>" ; } get ( java . nio . file . Path ) { try { return java . nio . file . Files . newInputStream ( path ) ; } catch ( java . nio . file . NoSu...
org . junit . Assert . assertEquals ( ee . shy . storage . accessor . TEST_STRING , org . apache . commons . io . IOUtils . toString ( accessor . get ( file ) ) )
testElSupportCompare ( ) { compareBoth ( "Nulls<sp>should<sp>compare<sp>equal" , 0 , null , null ) ; compareBoth ( "Null<sp>should<sp>compare<sp>equal<sp>to<sp>\"\"" , 0 , "" , null ) ; compareBoth ( "Null<sp>should<sp>be<sp>less<sp>than<sp>File()" , ( - 1 ) , null , new java . io . File ( "" ) ) ; compareBoth ( "Null<...
org . junit . Assert . assertTrue ( ( null == null ) )
parseWithProtocolAndHostAndPortAndOneQueryParameter ( ) { final com . azure . common . implementation . http . UrlBuilder builder = com . azure . common . implementation . http . UrlBuilder . parse ( "https://www.bing.com:987?a=1" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . value ; }
org . junit . Assert . assertEquals ( "https://www.bing.com:987?a=1" , builder . toString ( ) )
testUploadUpdatedMetaGlobal ( ) { final org . mozilla . android . sync . test . helpers . MockGlobalSessionCallback callback = new org . mozilla . android . sync . test . helpers . MockGlobalSessionCallback ( ) ; final org . mozilla . gecko . sync . GlobalSession session = org . mozilla . gecko . background . testhelpe...
org . junit . Assert . assertEquals ( expected , session . config . metaGlobal . getEnabledEngineNames ( ) )
testGetOrCreateSessionId ( ) { "<AssertPlaceHolder>" ; } getOrCreateSessionId ( org . pac4j . play . PlayWebContext ) { return tokenName ; }
org . junit . Assert . assertNotNull ( store . getOrCreateSessionId ( context ) )
nullReturnValue ( ) { gov . hhs . fha . nhinc . patientdiscovery . aspect . MCCIIN000002UV01EventDescriptionBuilder builder = new gov . hhs . fha . nhinc . patientdiscovery . aspect . MCCIIN000002UV01EventDescriptionBuilder ( ) ; builder . setReturnValue ( null ) ; gov . hhs . fha . nhinc . event . EventDescription eve...
org . junit . Assert . assertNotNull ( eventDescription )
testDocumentCreation ( ) { java . lang . String roleName = "rolename42a" ; createRole ( roleName , db ( ) . tx ( ( ) -> group ( ) . getUuid ( ) ) ) ; com . gentics . mesh . core . rest . role . RoleListResponse list = call ( ( ) -> client ( ) . searchRoles ( getSimpleTermQuery ( "name.raw" , roleName ) ) ) ; "<AssertPl...
org . junit . Assert . assertEquals ( 1 , list . getData ( ) . size ( ) )
testAssertionGroupsRequestWithMultipleGroupsAndInternalArtifact ( ) { System . out . println ( "\n***Starting<sp>testAssertionGroupsRequestWithMultipleGroupsAndInternalArtifact" ) ; org . ebayopensource . turmeric . services . assertionsservice . junit . ApplyAssertionGroupsRequest request = new org . ebayopensource . ...
org . junit . Assert . assertEquals ( org . ebayopensource . turmeric . services . assertionsservice . junit . PASS , result )
getListReturnsJsonList ( ) { testJSON = new org . json . JSONObject ( ) ; testJSON . put ( testKey , testList ) ; org . restlet . representation . Representation request = mockedJsonRequest ( testJSON . toString ( ) ) ; classUnderTest = new org . locationtech . geowave . service . rest . field . RequestParametersJson (...
org . junit . Assert . assertEquals ( testList , classUnderTest . getList ( testKey ) )
givenPushNBytesInstrctionWith1Byte_whenExecuted_then1BytePushed ( ) { byte [ ] instructions = new byte [ ] { 64 , 1 , 1 } ; java . util . List < org . mabb . fontverter . opentype . TtfInstructions . instructions . TtfInstruction > parsed = parser . parse ( instructions ) ; org . mabb . fontverter . opentype . TtfInstr...
org . junit . Assert . assertEquals ( 1 , vm . getStack ( ) . size ( ) )
testCanBuildOnlyOnce ( ) { boolean fail = false ; builder . build ( ) ; try { builder . build ( ) ; } catch ( final java . lang . IllegalStateException e ) { fail = true ; } "<AssertPlaceHolder>" ; } build ( ) { return new com . github . rinde . rinsim . fsm . StateMachine ( start , tableBuilder . build ( ) , explicitR...
org . junit . Assert . assertTrue ( fail )
testNotificationsWithListenerRuntimeEx ( ) { queueExecutor = java . util . concurrent . Executors . newFixedThreadPool ( 1 ) ; org . opendaylight . yangtools . util . concurrent . NotificationManager < org . opendaylight . yangtools . util . concurrent . QueuedNotificationManagerTest . TestListener < java . lang . Inte...
org . junit . Assert . assertTrue ( tasks . isEmpty ( ) )
testJava8 ( ) { java . io . File file = org . easymock . EasyMock . createMock ( java . io . File . class ) ; org . easymock . EasyMock . expect ( file . canExecute ( ) ) . andReturn ( true ) ; org . easymock . EasyMock . replay ( file ) ; "<AssertPlaceHolder>" ; org . easymock . EasyMock . verify ( file ) ; } replay (...
org . junit . Assert . assertTrue ( file . canExecute ( ) )
customConverter ( ) { com . google . devtools . common . options . Options < com . google . devtools . common . options . OptionsTest . UsesCustomConverter > options = com . google . devtools . common . options . Options . parse ( com . google . devtools . common . options . OptionsTest . UsesCustomConverter . class , ...
org . junit . Assert . assertEquals ( expected , options . getOptions ( ) . url )
testArrayDeserialization ( ) { com . owlike . genson . Genson genson = createTimestampGenson ( java . time . LocalTime . class , TimestampFormat . ARRAY , londonZoneId ) ; java . time . LocalTime dt = java . time . LocalTime . of ( 10 , 31 , 45 ) ; java . lang . String json = "[10,<sp>31,<sp>45,<sp>0]" ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( dt , genson . deserialize ( json , java . time . LocalTime . class ) )
testBooleanHASProp ( ) { java . lang . String template = "<t.parkingSpot>" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; st . add ( "t" , new org . stringtemplate . v4 . test . User ( 32 , "Ter" ) ) ; java . lang . String expected = "true" ; java . lang . String result = st . r...
org . junit . Assert . assertEquals ( expected , result )
testInitConfig ( ) { com . streamsets . pipeline . api . Processor sparkMLProcessor = new com . streamsets . pipeline . stage . processor . databricksml . TestDatabricksMLProcessorBuilder ( ) . modelPath ( com . streamsets . pipeline . stage . processor . databricksml . TestDatabricksMLProcessor . stringInputModelPath ...
org . junit . Assert . assertEquals ( 0 , issues . size ( ) )
hasResourceCreatePermissions_noPermissions_shouldFailAsAuthenticated ( ) { authenticateSystemResource ( ) ; final java . lang . String resourceClassName = generateResourceClass ( false , false ) ; final java . lang . String customPermissionName = generateResourceClassPermission ( resourceClassName ) ; final char [ ] pa...
org . junit . Assert . assertThat ( allResourceCreatePermissionsForResourceClassAndDomain . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testParseFromActionIdWithAddDiscussionActionId ( ) { com . liferay . sharing . security . permission . SharingEntryAction addDiscussionSharingEntryAction = SharingEntryAction . ADD_DISCUSSION ; "<AssertPlaceHolder>" ; } parseFromActionId ( java . lang . String ) { if ( java . util . Objects . equals ( com . liferay . s...
org . junit . Assert . assertEquals ( addDiscussionSharingEntryAction , com . liferay . sharing . security . permission . SharingEntryAction . parseFromActionId ( addDiscussionSharingEntryAction . getActionId ( ) ) )
shouldPass ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testNumberFormatError ( ) { org . locationtech . udig . ui . BasicTypeCellEditor editor ; editor = new org . locationtech . udig . ui . BasicTypeCellEditor ( shell , org . locationtech . udig . ui . Integer . class ) ; editor . setValue ( "<sp>" ) ; try { editor . getValue ( ) ; } catch ( java . lang . Exception e ) { ...
org . junit . Assert . assertTrue ( true )
testEditDirectWMSIntegration ( ) { org . geoserver . gwc . GWC gwc = org . geoserver . gwc . GWC . get ( ) ; boolean directWMSIntegrationEnabled = gwc . getConfig ( ) . isDirectWMSIntegrationEnabled ( ) ; testEditCheckboxOption ( "form:gwcServicesPanel:enableWMSIntegration" , "gwcServicesPanel:enableWMSIntegration" , d...
org . junit . Assert . assertEquals ( ( ! directWMSIntegrationEnabled ) , gwc . getConfig ( ) . isDirectWMSIntegrationEnabled ( ) )
testCanPrintGeneratedReport ( ) { java . io . StringWriter out = new java . io . StringWriter ( ) ; info . novatec . testit . livingdoc . report . PlainReport report = new info . novatec . testit . livingdoc . report . PlainReport ( "test" ) ; java . lang . String lorem = "Lorem<sp>ipsum" ; report . generate ( info . n...
org . junit . Assert . assertEquals ( lorem , out . toString ( ) )
repToStringReturnsEmptyIfTagsEmpty ( ) { com . microsoft . azure . sdk . iot . service . devicetwin . DeviceTwinDevice testDevice = new com . microsoft . azure . sdk . iot . service . devicetwin . DeviceTwinDevice ( "testDevice" ) ; java . lang . String testDeviceString = testDevice . reportedPropertiesToString ( ) ; "...
org . junit . Assert . assertTrue ( ( ( testDeviceString . length ( ) ) == 0 ) )
shouldRunInSingleMode ( ) { org . neo4j . graphdb . GraphDatabaseService database = new org . neo4j . test . TestGraphDatabaseFactory ( ) . newImpermanentDatabaseBuilder ( ) . setConfig ( OnlineBackupSettings . online_backup_enabled , com . graphaware . runtime . module . FALSE ) . newGraphDatabase ( ) ; registerShutdo...
org . junit . Assert . assertTrue ( ( ( module . getRuns ( ) ) > 10 ) )
matchesCanBeSavedIfExistingObjectAndExceptionOnInsertion ( ) { org . mockito . Mockito . doThrow ( new com . webobjects . foundation . NSValidation . ValidationException ( "insertion<sp>error" ) ) . when ( mockObject ) . validateForInsert ( ) ; boolean result = matcher . matchesSafely ( mockObject ) ; "<AssertPlaceHold...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
cycleTest ( ) { eu . danieldk . dictomaton . PerfectHashDictionary dict = new eu . danieldk . dictomaton . DictionaryBuilder ( ) . addAll ( d_words3 ) . buildPerfectHash ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return d_nSeqs ; }
org . junit . Assert . assertEquals ( 4 , dict . size ( ) )
testGetInstalledPlugins ( ) { com . t1t . apim . rest . KongInstalledPlugins installedPlugins = com . t1t . apim . rest . KongClientIntegrationTest . kongClient . getInstalledPlugins ( ) ; com . t1t . apim . rest . KongClientIntegrationTest . log . info ( "Installed<sp>plugins:{}" , installedPlugins ) ; "<AssertPlaceHo...
org . junit . Assert . assertNotNull ( installedPlugins )
testFindTenantDevices ( ) { java . util . List < org . thingsboard . server . controller . Device > devices = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 178 ; i ++ ) { org . thingsboard . server . controller . Device device = new org . thingsboard . server . controller . Device ( ) ; device . setName ( ( "...
org . junit . Assert . assertEquals ( devices , loadedDevices )
testSingleBrokenStatement ( ) { org . wikidata . wdtk . datamodel . helpers . StatementGroup sg1 = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeStatementGroup ( java . util . Collections . singletonList ( getBrokenStatement ( ) ) ) ; org . wikidata . wdtk . datamodel . helpers . StatementGroup sg2 = ge...
org . junit . Assert . assertEquals ( fixedId , dmc . copy ( brokenId ) )
testOnTransactionComplete ( ) { final org . opendaylight . controller . cluster . databroker . actors . dds . ClientTransaction transaction = object ( ) . createTransaction ( ) ; object ( ) . onTransactionReady ( transaction , cohort ) ; object ( ) . onTransactionComplete ( transaction . getIdentifier ( ) ) ; final org...
org . junit . Assert . assertEquals ( result , cohort )
testGeenActueleRecordsAanwezig ( ) { java . util . Set < nl . bzk . brp . model . operationeel . kern . HisPersoonGeboorteModel > hisPersoonGeboorteModellenZonderActueelRecord = new java . util . HashSet < nl . bzk . brp . model . operationeel . kern . HisPersoonGeboorteModel > ( java . util . Arrays . asList ( new nl ...
org . junit . Assert . assertNull ( geboorte )
chainMembership3 ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[r0]" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience . c...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
allAlerts ( ) { int N = 10 ; for ( int i = 0 ; i < N ; i ++ ) { holder . hold ( alertEntity ( ) ) ; } "<AssertPlaceHolder>" ; } allAlerts ( ) { int N = 10 ; for ( int i = 0 ; i < N ; i ++ ) { holder . hold ( alertEntity ( ) ) ; } org . junit . Assert . assertEquals ( N , holder . allAlerts ( ) . size ( ) ) ; }
org . junit . Assert . assertEquals ( N , holder . allAlerts ( ) . size ( ) )
testGetPolicyByName_noEntityManager_assertException ( ) { final org . nhindirect . config . store . dao . impl . CertPolicyDaoImpl dao = new org . nhindirect . config . store . dao . impl . CertPolicyDaoImpl ( ) ; boolean exceptionOccured = false ; try { dao . getPolicyByName ( "any" ) ; } catch ( java . lang . Illegal...
org . junit . Assert . assertTrue ( exceptionOccured )
createTablePK ( ) { makeSeparateAIS ( ) ; java . lang . String sql = "CREATE<sp>TABLE<sp>t1<sp>(c1<sp>INT<sp>NOT<sp>NULL<sp>PRIMARY<sp>KEY)" ; createTablePKGenerateAIS ( ) ; com . foundationdb . sql . parser . StatementNode stmt = parser . parseStatement ( sql ) ; "<AssertPlaceHolder>" ; com . foundationdb . sql . aisd...
org . junit . Assert . assertTrue ( ( stmt instanceof com . foundationdb . sql . parser . CreateTableNode ) )
testGetPreviousVisibleColumn_FirstColumn ( ) { org . eclipse . nebula . widgets . grid . GridColumn [ ] columns = org . eclipse . nebula . widgets . grid . GridTestUtil . createGridColumns ( grid , 5 , SWT . NONE ) ; "<AssertPlaceHolder>" ; } getPreviousVisibleColumn ( org . eclipse . nebula . widgets . grid . GridColu...
org . junit . Assert . assertNull ( grid . getPreviousVisibleColumn ( columns [ 0 ] ) )
testDir ( ) { final java . io . File tempDir = com . pogofish . jadt . util . TestUtil . createTmpDir ( ) ; try { final java . util . List < java . io . File > tempFiles = new java . util . ArrayList < java . io . File > ( ) ; try { for ( int i = 0 ; i < 5 ; i ++ ) { tempFiles . add ( createTempFile ( tempDir , i ) ) ;...
org . junit . Assert . assertEquals ( 5 , sources . size ( ) )
test ( ) { java . lang . String url = wbean . buildUrl ( RESTBeanForTest . ROOT , RESTBeanForTest . CALLBACK_TIMEOUT_PATH ) ; final java . lang . String hi = "hello" ; restf . asyncJsonPost ( url , hi , new org . zstack . header . rest . JsonAsyncRESTCallback < java . lang . String > ( null ) { @ org . zstack . test . ...
org . junit . Assert . assertTrue ( success )
testExecuteCommandProvider ( ) { org . eclipse . jdt . ls . core . internal . preferences . ClientPreferences mockCapabilies = mock ( org . eclipse . jdt . ls . core . internal . preferences . ClientPreferences . class ) ; when ( mockCapabilies . isExecuteCommandDynamicRegistrationSupported ( ) ) . thenReturn ( Boolean...
org . junit . Assert . assertFalse ( commands . isEmpty ( ) )
shouldBuildMetadataWithSessionId ( ) { final java . lang . String sessionId = "b51597dc-2526-4c71-bd08-5031c79f11e3" ; final uk . gov . justice . services . messaging . Metadata metadata = metadataWithDefaults ( ) . withSessionId ( sessionId ) . build ( ) ; "<AssertPlaceHolder>" ; } sessionId ( ) { return metadata . se...
org . junit . Assert . assertThat ( metadata . sessionId ( ) . get ( ) , org . hamcrest . Matchers . is ( sessionId ) )
testVertexSetIteratorTooFar ( ) { edu . ucla . sspace . graph . Graph < edu . ucla . sspace . graph . DirectedEdge > g = new edu . ucla . sspace . graph . SparseDirectedGraph ( ) ; edu . ucla . sspace . graph . Set < java . lang . Integer > control = new edu . ucla . sspace . graph . HashSet < java . lang . Integer > (...
org . junit . Assert . assertEquals ( vertices . size ( ) , i )
testGetNode ( ) { final org . jacoco . report . internal . html . page . MethodItem item = new org . jacoco . report . internal . html . page . MethodItem ( node , "test()" , null ) ; "<AssertPlaceHolder>" ; } getNode ( ) { return node ; }
org . junit . Assert . assertSame ( node , item . getNode ( ) )
shouldGetMajorVersion ( ) { "<AssertPlaceHolder>" ; } majorVersion ( ) { return net . openhft . chronicle . core . Jvm . JVM_JAVA_MAJOR_VERSION ; }
org . junit . Assert . assertThat ( ( ( net . openhft . chronicle . core . Jvm . majorVersion ( ) ) > 0 ) , org . hamcrest . CoreMatchers . is ( true ) )
testGetClassStructuresUsingComparator ( ) { java . util . List < com . liferay . dynamic . data . mapping . kernel . DDMStructure > structures = com . liferay . dynamic . data . mapping . kernel . DDMStructureManagerUtil . getClassStructures ( _group . getCompanyId ( ) , _classNameId , DDMStructureManager . STRUCTURE_C...
org . junit . Assert . assertEquals ( structures . toString ( ) , ( initialSize + 1 ) , structures . size ( ) )
testElim ( ) { com . performizeit . mjprof . parser . ThreadInfo js = new com . performizeit . mjprof . parser . ThreadInfo ( ( ( ( ( strt ) + ( stck ) ) + ( akkka ) ) + ( stck2 ) ) ) ; com . performizeit . mjprof . plugins . mappers . singlethread . StackFrameNotContains tb = new com . performizeit . mjprof . plugins ...
org . junit . Assert . assertEquals ( ( ( ( strt ) + ( stck ) ) + ( stck2 ) ) , js2 . toString ( ) )
testGetNlink ( ) { org . dcache . chimera . posix . Stat stat = new org . dcache . chimera . posix . Stat ( ) ; stat . setNlink ( 1 ) ; "<AssertPlaceHolder>" ; } getNlink ( ) { guard ( org . dcache . vehicles . NLINK ) ; return _nlink ; }
org . junit . Assert . assertEquals ( 1 , stat . getNlink ( ) )
noTransformerTest ( ) { final com . github . wuic . util . Pipe < com . github . wuic . nut . ConvertibleNut > p = new com . github . wuic . util . Pipe < com . github . wuic . nut . ConvertibleNut > ( org . mockito . Mockito . mock ( com . github . wuic . nut . ConvertibleNut . class ) , new com . github . wuic . util...
org . junit . Assert . assertEquals ( "content" , out . toString ( ) )
testPersoonParserGeenWaarden ( ) { final nl . bzk . migratiebrp . bericht . model . lo3 . parser . Lo3PersoonParser parser = new nl . bzk . migratiebrp . bericht . model . lo3 . parser . Lo3PersoonParser ( ) ; final nl . bzk . migratiebrp . conversie . model . lo3 . Lo3Stapel < nl . bzk . migratiebrp . conversie . mode...
org . junit . Assert . assertNull ( parsedInhoud )
testGetNextBusinessDay_ExitSecondsSet ( ) { java . time . ZonedDateTime ldt = java . time . ZonedDateTime . of ( 2016 , 2 , 25 , 6 , 45 , 55 , 0 , java . time . ZoneId . systemDefault ( ) ) ; java . time . ZonedDateTime expectedDatetime = java . time . ZonedDateTime . of ( 2016 , 2 , 25 , 6 , 46 , 55 , 0 , java . time ...
org . junit . Assert . assertEquals ( expectedDatetime , strategy . getNextBusinessDay ( ldt ) )
testListInitialisation ( ) { org . tests . model . basic . Customer customer = new org . tests . model . basic . Customer ( ) ; io . ebean . BeanState beanState = io . ebean . Ebean . getBeanState ( customer ) ; if ( beanState != null ) { java . util . List < org . tests . model . basic . Order > orders = customer . ge...
org . junit . Assert . assertNotNull ( orders )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . marketplace . model . Module . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . liferay . ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testRewritePomWithScmOfParentEndingWithASlash ( ) { java . util . List < org . apache . maven . project . MavenProject > reactorProjects = createReactorProjects ( "pom-with-scm-of-parent-ending-with-a-slash" ) ; org . apache . maven . shared . release . config . ReleaseDescriptorBuilder builder = createDescriptorFromPr...
org . junit . Assert . assertTrue ( comparePomFiles ( reactorProjects ) )
readData ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; java . lang . String [ ] arr = new java . lang . String [ ] { "1.414011237411E9<sp>OFF" , "1.414011282953E9<sp>ACTIVE" , "1.414011295886E9<sp>PhonyState" , "1.414011300035E9<sp>AC...
org . junit . Assert . assertTrue ( ( ( info . size ( ) ) > 0 ) )
testGetInputStream ( ) { when ( mockBinary . getStream ( ) ) . thenReturn ( mockInputStream ) ; try ( final java . io . InputStream actual = testObj . getInputStream ( ) ) { "<AssertPlaceHolder>" ; verify ( mockBinary ) . getStream ( ) ; } } getInputStream ( ) { try { return property . getBinary ( ) . getStream ( ) ; }...
org . junit . Assert . assertEquals ( mockInputStream , actual )
testCopy ( ) { java . io . InputStream in = new java . io . ByteArrayInputStream ( org . kocakosm . pitaya . io . ByteStreamsTest . DATA ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; org . kocakosm . pitaya . io . ByteStreams . copy ( in , out ) ; "<AssertPlaceHolder>" ; } toBy...
org . junit . Assert . assertArrayEquals ( org . kocakosm . pitaya . io . ByteStreamsTest . DATA , out . toByteArray ( ) )
testAdapterSetText_adjustsSelection ( ) { combo . setText ( "some<sp>text" ) ; combo . setSelection ( new org . eclipse . swt . graphics . Point ( 7 , 9 ) ) ; combo . getAdapter ( org . eclipse . swt . internal . widgets . ITextAdapter . class ) . setText ( "text" ) ; "<AssertPlaceHolder>" ; } getSelection ( ) { checkW...
org . junit . Assert . assertEquals ( new org . eclipse . swt . graphics . Point ( 4 , 4 ) , combo . getSelection ( ) )
test ( ) { java . lang . Object o = new java . lang . Object ( ) ; org . simpleflatmapper . reflect . instantiator . GetterBiInstantiator < java . lang . Object , java . lang . Object , java . lang . Object > getterInstantiator = new org . simpleflatmapper . reflect . instantiator . GetterBiInstantiator < java . lang ....
org . junit . Assert . assertEquals ( o , getterInstantiator . newInstance ( null , null ) )
testLongArray ( ) { long [ ] t = new long [ ] { 1L } ; t = roundTrip ( t , long [ ] . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 1L , t [ 0 ] )
testNoDelayOnDefault ( ) { sendMessage ( normalQueueName ) ; javax . jms . ConnectionFactory fact = getCF ( ) ; javax . jms . Connection connection = fact . createConnection ( ) ; try { javax . jms . Session session = connection . createSession ( false , Session . CLIENT_ACKNOWLEDGE ) ; connection . start ( ) ; javax ....
org . junit . Assert . assertNotNull ( receive ( consumer1 ) )
goodCFScript ( ) { final java . lang . String cfcSrc = "switch(rejectCode[applicant])<sp>{" + ( ( ( ( ( ( ( ( "\tcase<sp>\"score\":<sp>" + "\t\tWriteOutput(\"Reject<sp>reason:<sp>Score<sp>was<sp>too<sp>low.<br>\");<sp>" ) + "<sp>break;<sp>" ) + "\tcase<sp>\"late\":<sp>" ) + "\t\tWriteOutput(\"Reject<sp>reason:<sp>Appli...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
indices_A$_Nil ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( ) ; com . m3 . scalaflavor4j . Seq < java . lang . Integer > actual = seq . indices ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return 0 ; }
org . junit . Assert . assertThat ( actual . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 0 ) ) )
testGetAsOk ( ) { final java . util . Map < java . lang . String , java . lang . Object > json = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; final java . lang . String key = "foo" ; final java . lang . Integer val = 42 ; json . put ( key , val ) ; "<AssertPlaceHolder>" ; } getAs ( ja...
org . junit . Assert . assertEquals ( val , com . lightboxtechnologies . spectrum . JSON . getAs ( json , key , com . lightboxtechnologies . spectrum . Integer . class ) )
testDatumGeboorteSamengesteldeNaamGeslachtsnaamstamWoonPlaatsActueel ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 = new nl . bzk . brp . domain . algemeen . ZoekCriteri...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
testEquals ( ) { org . jfree . data . time . Day day1 = new org . jfree . data . time . Day ( 29 , org . jfree . chart . date . MonthConstants . MARCH , 2002 ) ; org . jfree . data . time . Day day2 = new org . jfree . data . time . Day ( 29 , org . jfree . chart . date . MonthConstants . MARCH , 2002 ) ; "<AssertPlace...
org . junit . Assert . assertEquals ( day1 , day2 )
testGetAnnotationMirrorsNoAnnotations ( ) { compile ( com . google . common . base . Joiner . on ( '\n' ) . join ( "package<sp>foo;" , "class<sp>Foo<sp>{<sp>}" ) ) ; javax . lang . model . element . PackageElement fooPackage = elements . getPackageElement ( "foo" ) ; "<AssertPlaceHolder>" ; } getAnnotationMirrors ( ) {...
org . junit . Assert . assertThat ( fooPackage . getAnnotationMirrors ( ) , org . hamcrest . Matchers . empty ( ) )
testOrderedListSubsubitem ( ) { java . lang . String content = "###<sp>subsubitem" ; java . lang . String expected = content ; java . lang . String actual = _translate ( content ) ; "<AssertPlaceHolder>" ; } _translate ( com . liferay . portal . kernel . exception . PortalException ) { if ( portalException instanceof c...
org . junit . Assert . assertEquals ( expected , actual )
hasPermissionToTemplateModifyWhenUserIsNotShakedownAdminAndIsTestingMode ( ) { ch . puzzle . itc . mobiliar . business . security . control . ResourceEntity as = resourceEntityBuilder . mockAppServerEntity ( "as" , null , null , null ) ; when ( sessionContext . isCallerInRole ( ch . puzzle . itc . mobiliar . business ....
org . junit . Assert . assertFalse ( result )
testConstructor ( ) { org . biojava . nbio . genome . io . fastq . FastqBuilder fastqBuilder = new org . biojava . nbio . genome . io . fastq . FastqBuilder ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( fastqBuilder )
shouldBeTrueWhenGivenTrue ( ) { final org . pitest . functional . predicate . And < java . lang . Object > testee = and ( ( i ) -> true ) ; "<AssertPlaceHolder>" ; } test ( java . lang . String ) { return this . includedClassPathElement . contains ( a ) ; }
org . junit . Assert . assertTrue ( testee . test ( null ) )
testConstructorReferences14 ( ) { org . codehaus . jdt . groovy . model . GroovyCompilationUnit foo = createUnit ( "p" , "Bar" 1 , ( "package<sp>p\n" + ( ( ( "Bar" 2 + "<sp>Foo(int<sp>i)<sp>{}\n" ) + "Bar" 0 ) + "}" ) ) ) ; createUnit ( "" , "Bar" , ( "import<sp>p.Foo\n" + ( "def<sp>bar<sp>=<sp>new<sp>Foo(0)<sp>{\n" + ...
org . junit . Assert . assertEquals ( 0 , ctorRefs )
testAsErrorNotKnownError ( ) { final java . util . List < com . allanbank . mongodb . bson . Document > docs = java . util . Collections . singletonList ( com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . build ( ) ) ; final com . allanbank . mongodb . client . message . Reply reply = new com . ...
org . junit . Assert . assertNull ( error )
list ( ) { java . lang . String path = com . intellij . openapi . application . PathManager . getHomePath ( ) ; doTest ( new java . io . File ( path ) ) ; long gain = ( ( ( myJavaTotal ) - ( myIdeaTotal ) ) * 100 ) / ( myJavaTotal ) ; java . lang . String message = ( ( ( ( ( ( ( "home=" + path ) + "<sp>java.io=" ) + ( ...
org . junit . Assert . assertTrue ( message , ( ( myIdeaTotal ) <= ( myJavaTotal ) ) )
resetPropertyValueOnResourceForContextShouldBeSuccessfullWhenResourceUpdatePermissionIsPresentButResourcePropertyDecryptIsMissing ( ) { java . lang . String resourceGroupName = "resourceGroupName" ; java . lang . String releaseName = "releaseName" ; java . lang . String contextName = "contextName" ; java . lang . Strin...
org . junit . Assert . assertFalse ( properties . isEmpty ( ) )
shouldNotRenderAttributesPassingNullDocAttrs ( ) { java . util . List < com . github . cukedoctor . api . model . Feature > features = new java . util . ArrayList ( ) ; features . add ( com . github . cukedoctor . util . builder . FeatureBuilder . instance ( ) . id ( "id" ) . name ( "name" ) . build ( ) ) ; java . lang...
org . junit . Assert . assertEquals ( "" , document )
testGeefDienst ( ) { final nl . bzk . algemeenbrp . dal . domein . brp . entity . Dienst dienst = leveringAutorisatieCache . geefDienst ( 11 ) ; "<AssertPlaceHolder>" ; } geefDienst ( nl . bzk . brp . model . algemeen . stamgegeven . autaut . SoortDienst ) { final java . util . Collection < nl . bzk . brp . model . alg...
org . junit . Assert . assertNotNull ( dienst )
testGetSetState ( ) { com . microsoft . windowsazure . services . media . models . JobState expectedJobState = JobState . Finished ; com . microsoft . windowsazure . services . media . models . JobInfo JobInfo = new com . microsoft . windowsazure . services . media . models . JobInfo ( null , new com . microsoft . wind...
org . junit . Assert . assertEquals ( expectedJobState , actualJobState )
testHeaderOkButNoTokenInSession ( ) { final org . pac4j . core . context . WebContext context = org . pac4j . core . context . MockWebContext . create ( ) . addRequestHeader ( Pac4jConstants . CSRF_TOKEN , org . pac4j . core . authorization . authorizer . csrf . VALUE ) ; "<AssertPlaceHolder>" ; } isAuthorized ( org . ...
org . junit . Assert . assertFalse ( authorizer . isAuthorized ( context , null ) )
testWrongServicePathHeaderLength ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIRestHandler.wrongServicePathHeaderLength]" ) ) + "--------<sp>A<sp>FIWARE<sp>service<sp>path<sp>header<sp>whose<sp>length<sp>is<sp>greater<sp>than<sp>50<sp>characters<sp>is<sp>detected" ) ) ; com . telefonica . iot . cygnus . h...
org . junit . Assert . assertTrue ( handler . wrongServicePathHeaderLength ( wrongServicePathHeader ) )
testGetAllProjectsUserHasSubscriptionsForum ( ) { org . sagebionetworks . repo . model . subscription . SubscriptionObjectType objectType = org . sagebionetworks . repo . model . subscription . SubscriptionObjectType . FORUM ; java . util . Set < java . lang . Long > projects = manager . getAllProjectsUserHasSubscripti...
org . junit . Assert . assertEquals ( projectIds , projects )
pathUtilTest4 ( ) { java . io . File [ ] roots = java . io . File . listRoots ( ) ; java . io . File basePath = new java . io . File ( ( ( ( ( roots [ 0 ] ) + "some" ) + ( java . io . File . separatorChar ) ) + "dir" ) ) ; java . io . File relativePath = new java . io . File ( ( ( ( ( roots [ 0 ] ) + "some" ) + ( java ...
org . junit . Assert . assertEquals ( path , "." )
testMultiTokenDeletionDuringLoop ( ) { java . lang . String grammar = "grammar<sp>T;\n" + "a<sp>:<sp>'a'<sp>'b'*<sp>'c'<sp>;" ; java . lang . String found = execParser ( "T.g4" , grammar , "TParser" , "TLexer" , "a" , "abaaababc" , false ) ; java . lang . String expecting = "line<sp>1:2<sp>extraneous<sp>input<sp>\'a\'<...
org . junit . Assert . assertEquals ( expecting , result )
testGetLatestActivityByPageAndProjects ( ) { java . util . List < io . lavagna . service . Event > events = eventRepository . getLatestActivityByPageAndProjects ( user . getId ( ) , 0 , java . util . Arrays . asList ( project . getId ( ) ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( 1 , events . size ( ) )
testNeedKeep05 ( ) { java . lang . String tokenName = "aaa" ; org . terasoluna . gfw . web . token . transaction . TransactionTokenType tokenType = TransactionTokenType . CHECK ; org . terasoluna . gfw . web . token . transaction . TransactionTokenInfo info = new org . terasoluna . gfw . web . token . transaction . Tra...
org . junit . Assert . assertThat ( output , org . hamcrest . CoreMatchers . is ( true ) )
testModuleWithAltRoot ( ) { org . eclipse . ceylon . common . FileUtil . delete ( new java . io . File ( "build/test-modules" ) ) ; org . eclipse . ceylon . compiler . js . ToolModel < org . eclipse . ceylon . compiler . js . CeylonCompileJsTool > tool = pluginLoader . loadToolModel ( "compile-js" ) ; "<AssertPlaceHold...
org . junit . Assert . assertNotNull ( tool )
testQuery ( ) { "<AssertPlaceHolder>" ; org . kie . api . runtime . KieSession kSession = kBase . newKieSession ( ) ; System . out . println ( "<sp>----<sp>Starting<sp>testQuery()<sp>Test<sp>---" ) ; ca . uhn . fhir . model . dstu2 . resource . Patient patient = ( ( ca . uhn . fhir . model . dstu2 . resource . Patient ...
org . junit . Assert . assertNotNull ( kBase )
testGetPagerStringObjectArrayIntegerInteger ( ) { java . util . Date d = sdf . parse ( "1982-01-01" ) ; java . lang . String jpql = "select<sp>u<sp>from<sp>User<sp>u<sp>join<sp>u.roles<sp>r<sp>where<sp>u.enabled<sp>=<sp>?2<sp>and<sp>u.birthday<sp>><sp>?1<sp>and<sp>r.name<sp>=<sp>?3" ; com . github . emailtohl . buildin...
org . junit . Assert . assertFalse ( ls . isEmpty ( ) )
testCreateGlobalAddress ( ) { org . easymock . EasyMock . expect ( computeRpcMock . createGlobalAddress ( com . google . cloud . compute . deprecated . ComputeImplTest . GLOBAL_ADDRESS . toPb ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . EMPTY_RPC_OPTIONS ) ) . andReturn ( globalOperation . toPb...
org . junit . Assert . assertEquals ( globalOperation , operation )
getBodyAsStringEmpty ( ) { final net . jadler . Request req = net . jadler . Request . builder ( ) . method ( "POST" ) . requestURI ( java . net . URI . create ( "http://localhost/" ) ) . body ( new byte [ 0 ] ) . build ( ) ; "<AssertPlaceHolder>" ; } getBodyAsString ( ) { return new java . lang . String ( this . body ...
org . junit . Assert . assertThat ( req . getBodyAsString ( ) , is ( "" ) )