input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
getContextTest ( ) { when ( myApp . getApplicationContextLocal ( ) ) . thenReturn ( activity ) ; myApp . onCreate ( ) ; "<AssertPlaceHolder>" ; } getContext ( ) { return org . mewx . wenku8 . MyApp . context ; }
org . junit . Assert . assertEquals ( activity , org . mewx . wenku8 . MyApp . getContext ( ) )
testJpqlQueryGetSingleResultCount ( ) { java . lang . String queryString = "select<sp>count(o)<sp>from<sp>Dictionary<sp>o<sp>where<sp>o.category<sp>=<sp>:category<sp>and<sp>o.code<sp>=<sp>:code" ; org . dayatang . persistence . jpa . JpqlQuery query = new org . dayatang . persistence . jpa . JpqlQuery ( repository , qu...
org . junit . Assert . assertEquals ( 1L , repository . getSingleResult ( query ) )
plusEmptyInterval ( ) { net . time4j . range . DateInterval i1 = net . time4j . range . DateInterval . between ( net . time4j . PlainDate . of ( 2014 , 2 , 28 ) , net . time4j . PlainDate . of ( 2014 , 5 , 31 ) ) ; net . time4j . range . DateInterval i2 = net . time4j . range . DateInterval . between ( net . time4j . P...
org . junit . Assert . assertThat ( icoll . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
shouldGetMockCollectionGivenTwoTypesOfElement ( ) { uk . co . webamoeba . mockito . collections . inject . CollectionOfMocksField mockCollection1 = new uk . co . webamoeba . mockito . collections . inject . CollectionOfMocksField ( java . util . Collections . emptyList ( ) , java . util . List . class , java . io . Fil...
org . junit . Assert . assertSame ( mockCollection2 , actualMockCollection )
testDiagPart ( ) { org . nd4j . linalg . api . ndarray . INDArray i = org . nd4j . linalg . factory . Nd4j . create ( 5 , 5 ) ; org . nd4j . autodiff . samediff . SameDiff sd = org . nd4j . autodiff . samediff . SameDiff . create ( ) ; org . nd4j . autodiff . samediff . SDVariable var = sd . var ( "in" , i ) ; org . nd...
org . junit . Assert . assertEquals ( 1 , out . rank ( ) )
testGetEntryPointNameWheeunEditingPatternIsNotPresent ( ) { final org . drools . workbench . screens . guided . dtable . client . wizard . column . plugins . commons . PatternWrapper patternWrapper = new org . drools . workbench . screens . guided . dtable . client . wizard . column . plugins . commons . PatternWrapper...
org . junit . Assert . assertEquals ( "" , entryPointName )
whenFindByName_thenAvailableOnRetrieval ( ) { com . baeldung . spring . data . solr . model . Product phone = new com . baeldung . spring . data . solr . model . Product ( ) ; phone . setId ( "P0001" ) ; phone . setName ( "Phone" ) ; productRepository . save ( phone ) ; java . util . List < com . baeldung . spring . da...
org . junit . Assert . assertEquals ( phone . getId ( ) , retrievedProducts . get ( 0 ) . getId ( ) )
trimAll_A$String_StringIsEmpty ( ) { org . junithelper . core . filter . impl . TrimInsideOfStringFilter target = new org . junithelper . core . filter . impl . TrimInsideOfStringFilter ( ) ; java . lang . String src = "" ; java . lang . String actual = target . trimAll ( src ) ; java . lang . String expected = "" ; "<...
org . junit . Assert . assertThat ( actual , is ( equalTo ( expected ) ) )
testBuildMultipleStringWhereValues ( ) { java . lang . String expectedAwql = "SELECT<sp>Id,<sp>Name<sp>WHERE<sp>Name<sp>CONTAINS_ALL<sp>[\"white\",<sp>\"black\"]<sp>LIMIT<sp>0,50" ; com . google . api . ads . adwords . axis . utils . v201809 . ServiceQuery serviceQuery = new com . google . api . ads . adwords . axis . ...
org . junit . Assert . assertEquals ( expectedAwql , serviceQuery . toString ( ) )
testIndexOfColumns ( ) { org . eclipse . swt . widgets . TreeColumn col = new org . eclipse . swt . widgets . TreeColumn ( tree , org . eclipse . swt . SWT . NONE ) ; "<AssertPlaceHolder>" ; col . dispose ( ) ; try { tree . indexOf ( col ) ; org . junit . Assert . fail ( "Must<sp>not<sp>allow<sp>to<sp>call<sp>indexOf<s...
org . junit . Assert . assertEquals ( 0 , tree . indexOf ( col ) )
testConstructor ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( configuration )
getReaderForItemMissingFromCacheWillRetryAndCanSucceed ( ) { when ( cache . getReader ( "url" ) ) . thenThrow ( new org . alfresco . repo . content . caching . CacheMissException ( "url" ) ) . thenReturn ( cachedContent ) ; when ( backingStore . getReader ( "url" ) ) . thenReturn ( sourceContent ) ; when ( cache . put ...
org . junit . Assert . assertSame ( returnedReader , cachedContent )
shouldNotUpdateResourcesForChildCertificateWithInheritedResources ( ) { net . ripe . rpki . commons . validation . objectvalidators . CertificateRepositoryObjectValidationContext childContext = subject . createChildContext ( net . ripe . rpki . commons . validation . CertificateRepositoryObjectValidationContextTest . c...
org . junit . Assert . assertEquals ( subject . getResources ( ) , childContext . getResources ( ) )
testCombineOrOverride_secondIsNonAdditive_secondIsReturned ( ) { org . subtlelib . poi . api . style . Style result = org . subtlelib . poi . impl . style . StylesInternal . combineOrOverride ( additive , nonAdditive ) ; "<AssertPlaceHolder>" ; } combineOrOverride ( org . subtlelib . poi . api . style . Style , org . s...
org . junit . Assert . assertEquals ( nonAdditive , result )
testAmpersandWithoutWrap ( ) { final java . lang . String corrected = org . esa . s3tbx . dataio . modis . ModisDaacUtils . correctAmpersandWrap ( ( "<sp>dkjhaf<sp>&<sp>da\n" + "<sp>lsmf\n" ) ) ; "<AssertPlaceHolder>" ; } correctAmpersandWrap ( java . lang . String ) { final java . io . StringReader reader = new java ....
org . junit . Assert . assertEquals ( ( "<sp>dkjhaf<sp>&<sp>da\n" + "<sp>lsmf\n" ) , corrected )
addHeader ( ) { org . apache . shindig . gadgets . http . HttpResponseBuilder builder = new org . apache . shindig . gadgets . http . HttpResponseBuilder ( ) . addHeader ( "Foo-bar" , "baz" ) ; "<AssertPlaceHolder>" ; } getHeaders ( ) { return headers ; }
org . junit . Assert . assertEquals ( "baz" , builder . getHeaders ( ) . get ( "Foo-bar" ) . iterator ( ) . next ( ) )
testEvaluateNullDasharray ( ) { org . geotools . filter . function . FilterFunction_listMultiply func = ( ( org . geotools . filter . function . FilterFunction_listMultiply ) ( ff . function ( "listMultiply" , ff . literal ( 2.5 ) , null ) ) ) ; java . lang . Object evaluate = func . evaluate ( null ) ; "<AssertPlaceHo...
org . junit . Assert . assertNull ( evaluate )
testTransportManagerInitFail ( org . apache . servicecomb . core . Transport ) { new mockit . Expectations ( ) { { transport . getName ( ) ; result = "test" ; transport . init ( ) ; result = false ; transport . canInit ( ) ; result = true ; } } ; java . util . List < org . apache . servicecomb . core . Transport > tran...
org . junit . Assert . assertEquals ( manager . findTransport ( "test" ) , transport )
testGetInstance_with_multiple_paths_failed ( ) { com . dp . nebula . wormhole . engine . utils . JarLoader jl = com . dp . nebula . wormhole . engine . utils . JarLoader . getInstance ( new java . lang . String [ ] { getPath ( new java . lang . String [ ] { "jar" , "path01" } ) , "httq://aaaa" } ) ; "<AssertPlaceHolder...
org . junit . Assert . assertNull ( jl )
testLookupMapping ( ) { io . atlasmap . v2 . AtlasMapping atlasMapping = generateReferenceAtlasMapping ( ) ; atlasMapping . getLookupTables ( ) . getLookupTable ( ) . add ( generateLookupTable ( ) ) ; mapper . writerWithDefaultPrettyPrinter ( ) . writeValue ( new java . io . File ( ( ( ( ( ( ( "target" + ( java . io . ...
org . junit . Assert . assertNotNull ( uMapping )
fetchVersionFromPrimordial ( ) { final long vh = 10 ; final byte [ ] source = new byte [ ] { 10 , 11 , 12 } ; final byte [ ] target = new byte [ ] { } ; "<AssertPlaceHolder>" ; } fetchVersion ( byte [ ] , int , long , byte [ ] ) { int offset = 0 ; int length = com . persistit . MVV . VERSION_NOT_FOUND ; if ( ( version ...
org . junit . Assert . assertEquals ( MVV . VERSION_NOT_FOUND , com . persistit . MVV . fetchVersion ( source , source . length , vh , target ) )
name_emptyElement ( ) { final org . xmldb . api . base . ResourceSet result = org . exist . xquery . XQueryFunctionsTest . existEmbeddedServer . executeQuery ( "<a>b</a>/fn:name(c)" ) ; final java . lang . String r = ( ( java . lang . String ) ( result . getResource ( 0 ) . getContent ( ) ) ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( "" , r )
testWithoutMkdir ( ) { final org . apache . oozie . fluentjob . api . action . FSActionBuilder builder = getBuilderInstance ( ) ; for ( final org . apache . oozie . fluentjob . api . action . Mkdir mkdir : org . apache . oozie . fluentjob . api . action . TestFSActionBuilder . MKDIRS ) { builder . withMkdir ( mkdir ) ;...
org . junit . Assert . assertEquals ( expectedMkdirs , fsAction . getMkdirs ( ) )
canSerializeEnums ( ) { for ( com . linkedin . haivvreo . TestAvroSerializer . enum1 e : com . linkedin . haivvreo . TestAvroSerializer . enum1 . values ( ) ) { java . lang . String field = "{<sp>\"name\":\"enum1\",<sp>\"type\":{\"type\":\"enum\",<sp>\"name\":\"enum1_values\",<sp>\"symbols\":[\"BLUE\",\"RED\",<sp>\"GRE...
org . junit . Assert . assertEquals ( e , com . linkedin . haivvreo . TestAvroSerializer . enum1 . valueOf ( r . get ( "enum1" ) . toString ( ) ) )
testFailure ( ) { com . twitter . nodes . Node < java . lang . Boolean > node = com . twitter . nodes . IfSuccessfulNode . create ( new com . twitter . nodes . Node < java . lang . String > ( ) { @ com . twitter . nodes . Override protected com . twitter . util . Future < java . lang . String > evaluate ( ) throws com ...
org . junit . Assert . assertFalse ( resultFromNode ( node ) )
addition_isCorrect ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 4 , ( 2 + 2 ) )
testDerivedColumnToSQL ( ) { org . sagebionetworks . table . query . model . DerivedColumn element = org . sagebionetworks . table . query . util . SqlElementUntils . createDerivedColumn ( "james" ) ; "<AssertPlaceHolder>" ; } toString ( ) { double percent = ( ( ( double ) ( currentIndex ) ) / ( ( double ) ( totalCount...
org . junit . Assert . assertEquals ( "james" , element . toString ( ) )
ExtractHL7PatientFromPRPAIN201302MessageWhenSubject1Null ( ) { gov . hhs . fha . nhinc . transform . subdisc . HL7Extractors extractor = new gov . hhs . fha . nhinc . transform . subdisc . HL7Extractors ( ) ; org . hl7 . v3 . PRPAIN201302UV02 message = createPRPAIN201302UV02MessageWhereSubject1Null ( ) ; org . hl7 . v3...
org . junit . Assert . assertNull ( patient )
testDeployedQueue ( ) { final javax . jms . Queue queue = ( ( javax . jms . Queue ) ( initialContext . lookup ( "java:/queue1" ) ) ) ; "<AssertPlaceHolder>" ; } lookup ( java . lang . String ) { final org . jboss . as . naming . deployment . ContextNames . BindInfo bindInfo = org . jboss . as . naming . deployment . Co...
org . junit . Assert . assertNotNull ( queue )
CalcularIcmsComQuantidadeDois ( ) { tributos . setValorProduto ( java . math . BigDecimal . valueOf ( 2000 ) ) ; tributos . setQuantidadeProduto ( java . math . BigDecimal . valueOf ( 2 ) ) ; tributos . setPercentualIcms ( java . math . BigDecimal . valueOf ( 17 ) ) ; com . chronos . calc . resultados . IResultadoCalcu...
org . junit . Assert . assertEquals ( valorTest , valor )
testNegativeX ( ) { org . apache . commons . math4 . linear . ArrayRealVector c = new org . apache . commons . math4 . linear . ArrayRealVector ( new double [ ] { - 1.232323232323 , 1.43 , 1.63 } ) ; java . lang . String expected = ( ( ( ( ( "{-1" + ( getDecimalCharacter ( ) ) ) + "2323232323;<sp>1" ) + ( getDecimalCha...
org . junit . Assert . assertEquals ( expected , actual )
testCreate ( ) { org . hivedb . meta . persistence . SecondaryIndexDao d = new org . hivedb . meta . persistence . SecondaryIndexDao ( getDataSource ( getConnectString ( getHiveDatabaseName ( ) ) ) ) ; int initialSize = d . loadAll ( ) . size ( ) ; d . create ( createSecondaryIndex ( ) ) ; "<AssertPlaceHolder>" ; } loa...
org . junit . Assert . assertEquals ( ( initialSize + 1 ) , d . loadAll ( ) . size ( ) )
convertCreditCardApplicationFromYAWLToPNML ( ) { org . apromore . service . model . CanonisedProcess oFCanonised = canoniseYAWLModel ( "YAWL_models/CreditApplicationProcess.yawl" , null ) ; org . apromore . service . model . DecanonisedProcess decanonisedPNML = cSrv . deCanonise ( "PNML<sp>1.3.2" , oFCanonised . getCpt...
org . junit . Assert . assertNotNull ( decanonisedPNML )
testCacheTokenWithSameKey ( ) { org . scribe . model . Token newToken = new org . scribe . model . Token ( "access" , "someOtherSecret" ) ; oAuthTokenCacheService . cacheToken ( newToken ) ; "<AssertPlaceHolder>" ; } retrieveToken ( java . lang . String ) { if ( oauthToken == null ) { return null ; } return tokenCache ...
org . junit . Assert . assertEquals ( newToken , oAuthTokenCacheService . retrieveToken ( "access" ) )
testJmsProducerIdFromJmsSessionId ( ) { org . apache . qpid . jms . meta . JmsProducerId id1 = new org . apache . qpid . jms . meta . JmsProducerId ( firstId , 1 ) ; org . apache . qpid . jms . meta . JmsProducerId id2 = new org . apache . qpid . jms . meta . JmsProducerId ( id1 ) ; "<AssertPlaceHolder>" ; } getValue (...
org . junit . Assert . assertSame ( id1 . getValue ( ) , id2 . getValue ( ) )
createProperties_nullParams ( ) { java . util . Properties prop = opService . createProperties ( org . oscm . app . v2_0 . service . OperationServiceBeanTest . USER_ID , org . oscm . app . v2_0 . service . OperationServiceBeanTest . OP_ID , null ) ; "<AssertPlaceHolder>" ; verifyMandatoryProperties ( prop ) ; } size ( ...
org . junit . Assert . assertEquals ( 2 , prop . size ( ) )
testTimeExpressionComplete ( ) { java . util . Date dt = new java . util . Date ( ) ; java . util . Date dueDate = testExpression ( new java . text . SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss" ) . format ( dt ) ) ; "<AssertPlaceHolder>" ; } format ( java . util . logging . LogRecord ) { java . lang . StringBuilder line...
org . junit . Assert . assertEquals ( new java . text . SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss" ) . format ( dt ) , new java . text . SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm:ss" ) . format ( dueDate ) )
testSimplePropertyDocumentBuild ( ) { org . wikidata . wdtk . datamodel . interfaces . MonolingualTextValue mtv = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeMonolingualTextValue ( "Test" , "de" ) ; org . wikidata . wdtk . datamodel . interfaces . PropertyDocument pd1 = org . wikidata . wdtk . datamod...
org . junit . Assert . assertEquals ( pd1 , pd2 )
should_return_false_on_validateArchetypeCatalog_for_invalid_xml_file ( ) { boolean valid = de . dm . intellij . maven . model . ArchetypeCatalogFactoryUtil . validateArchetypeCatalog ( de . dm . intellij . maven . model . AnArchetypeCatalogFactoryUtil . ARBITRARY_XML ) ; "<AssertPlaceHolder>" ; } validateArchetypeCatal...
org . junit . Assert . assertThat ( valid , org . hamcrest . CoreMatchers . equalTo ( false ) )
shouldScheduleToNow ( ) { testRule . deploy ( PROCESS ) ; org . camunda . bpm . engine . impl . util . ClockUtil . setCurrentTime ( END_DATE ) ; for ( int i = 0 ; i < 5 ; i ++ ) { runtimeService . startProcessInstanceByKey ( PROCESS_KEY ) ; java . lang . String taskId = taskService . createTaskQuery ( ) . singleResult ...
org . junit . Assert . assertThat ( job . getDuedate ( ) , org . hamcrest . core . Is . is ( removalTime ) )
shouldTransformAPIFromSwaggerV3_yaml ( ) { io . gravitee . management . model . PageEntity pageEntity = getPage ( "io/gravitee/management/service/openapi.yaml" , MediaType . TEXT_PLAIN ) ; swaggerService . transform ( pageEntity ) ; "<AssertPlaceHolder>" ; validateV3 ( io . swagger . v3 . core . util . Yaml . mapper ( ...
org . junit . Assert . assertNotNull ( pageEntity . getContent ( ) )
testIncreasedMoreMembersGroup ( ) { java . util . Set < java . lang . String > members1 = new java . util . HashSet < java . lang . String > ( ) ; java . util . Set < java . lang . String > members2 = new java . util . HashSet < java . lang . String > ( ) ; java . lang . String situation = "@work" ; members2 . add ( "u...
org . junit . Assert . assertTrue ( ( ! ( newGroup . equals ( oldGroup ) ) ) )
testReducedMoreMembersGroup ( ) { java . util . Set < java . lang . String > members1 = new java . util . HashSet < java . lang . String > ( ) ; java . util . Set < java . lang . String > members2 = new java . util . HashSet < java . lang . String > ( ) ; java . lang . String situation = "@work" ; members1 . add ( "use...
org . junit . Assert . assertTrue ( ( ! ( newGroup . equals ( oldGroup ) ) ) )
testNoOverrideJaxrs ( ) { final com . gargoylesoftware . htmlunit . html . HtmlPage page = webClient . getPage ( ( ( webUrl ) + "resources/annotations/no_override_jaxrs" ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNull ( page )
testBasicOperation ( ) { org . kie . api . KieBase kbase = loadKnowledgeBase ( kconf , "simpleSequential.drl" ) ; org . kie . api . runtime . StatelessKieSession ksession = createStatelessKnowledgeSession ( kbase ) ; final java . util . List list = new java . util . ArrayList ( ) ; ksession . setGlobal ( "list" , list ...
org . junit . Assert . assertEquals ( 3 , list . size ( ) )
testLargerCase1D ( ) { java . util . List < java . lang . String > results = new java . util . ArrayList ( ) ; final com . hubspot . baragon . models . BaragonAgentMetadata agentMetadata = generateBaragonAgentMetadata ( "us-east-1d" ) ; final com . hubspot . baragon . agent . handlebars . PreferSameRackWeightingHelper ...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" , "" ) , results )
storeDocument_invalidTriggerForPrepare ( ) { final org . xmldb . api . modules . BinaryResource invalidModule = ( ( org . xmldb . api . modules . BinaryResource ) ( org . exist . collections . triggers . XQueryTriggerTest . testCollection . createResource ( org . exist . collections . triggers . XQueryTriggerTest . MOD...
org . junit . Assert . assertEquals ( max_store_attempts , count_prepare_exceptions )
testFileShouldNotDiscardedIfNNRestarted ( ) { getClusterBuilder ( ) . setRamDiskReplicaCapacity ( 2 ) . build ( ) ; final java . lang . String METHOD_NAME = org . apache . hadoop . test . GenericTestUtils . getMethodName ( ) ; org . apache . hadoop . fs . Path path1 = new org . apache . hadoop . fs . Path ( ( ( "/" + M...
org . junit . Assert . assertTrue ( fs . exists ( path1 ) )
testAxpyArrayArray ( ) { org . apache . ignite . ml . math . primitives . vector . Vector y = new org . apache . ignite . ml . math . primitives . vector . impl . DenseVector ( new double [ ] { 1.0 , 2.0 } ) ; double a = 2.0 ; org . apache . ignite . ml . math . primitives . vector . Vector x = new org . apache . ignit...
org . junit . Assert . assertEquals ( y , exp )
attr ( ) { org . jsoup . nodes . Document doc = org . jsoup . Jsoup . parse ( "<p<sp>title=foo><p<sp>title=bar><p<sp>class=foo><p<sp>class=bar>" ) ; java . lang . String classVal = doc . select ( "p" ) . attr ( "class" ) ; "<AssertPlaceHolder>" ; } attr ( java . lang . String ) { ensureAttributes ( ) ; return super . a...
org . junit . Assert . assertEquals ( "foo" , classVal )
testCreateMaxDimensionNoOriontationNoEnlarge ( ) { com . mortennobel . imagescaling . DimensionConstrain . DimensionConstrain constains = createMaxDimensionNoOrientation ( 400 , 200 , true ) ; com . mortennobel . imagescaling . Dimension res = constains . getDimension ( new com . mortennobel . imagescaling . Dimension ...
org . junit . Assert . assertEquals ( new com . mortennobel . imagescaling . Dimension ( 100 , 10 ) , res )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_SUNLDAPTest_URAttrMappingVar4 . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com...
org . junit . Assert . assertEquals ( "SampleLdapSUNRealm" , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_SUNLDAPTest_URAttrMappingVar4 . servlet . getRealm ( ) )
testCoerceIntegerToNumber ( ) { java . lang . Integer input = java . lang . Integer . valueOf ( 4390241 ) ; java . lang . Object output = org . apache . el . lang . ELSupport . coerceToType ( null , input , org . apache . el . lang . Number . class ) ; "<AssertPlaceHolder>" ; } coerceToType ( javax . el . ELContext , j...
org . junit . Assert . assertEquals ( input , output )
testExports ( ) { org . junit . Assume . assumeFalse ( com . eclipsesource . v8 . NodeJSTest . skipMessage , com . eclipsesource . v8 . NodeJSTest . skipTest ( ) ) ; nodeJS . release ( ) ; java . io . File testScript = com . eclipsesource . v8 . NodeJSTest . createTemporaryScriptFile ( "exports.foo=7" , "testScript" ) ...
org . junit . Assert . assertEquals ( 7 , exports . getInteger ( "foo" ) )
testGetNextTuplePeopleFirstName ( ) { java . lang . String query = "g[^\\s]*" ; java . util . List < edu . uci . ics . texera . api . tuple . Tuple > exactResults = edu . uci . ics . texera . dataflow . regexmatcher . RegexMatcherTestHelper . getQueryResults ( edu . uci . ics . texera . dataflow . regexmatcher . RegexM...
org . junit . Assert . assertTrue ( edu . uci . ics . texera . api . utils . TestUtils . equals ( expectedResults , exactResults ) )
checkGuiResources3D ( ) { for ( org . geogebra . desktop . geogebra3D . gui . GuiResources3D res : org . geogebra . desktop . geogebra3D . gui . GuiResources3D . values ( ) ) { java . lang . String fn = res . getFilename ( ) ; if ( ! ( fn . startsWith ( "/org" ) ) ) { fn = "/org/geogebra/desktop/geogebra3D" + fn ; } ja...
org . junit . Assert . assertNotNull ( ( "" + res ) , url )
id ( ) { colorTheme . setId ( "id" ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertThat ( colorTheme . getId ( ) , org . hamcrest . CoreMatchers . is ( "id" ) )
itCanSetPropertyToNullNewModeKeepEmpty ( ) { org . nuxeo . ecm . core . api . DocumentModel note = org . nuxeo . ecm . restapi . test . RestServerInit . getNote ( 0 , session ) ; note . setPropertyValue ( "dc:format" , "a<sp>value<sp>that<sp>will<sp>be<sp>set<sp>to<sp>null" ) ; session . saveDocument ( note ) ; fetchIn...
org . junit . Assert . assertNull ( value )
testGetViolationsWithPolicy1 ( ) { eu . atos . sla . datamodel . IPolicy policy ; System . out . println ( "---testEvaluateWithPolicy1()---" ) ; java . util . List < eu . atos . sla . monitoring . IMonitoringMetric > metrics = setUpWithPolicies ( ) ; policy = newPolicy ( "LATENCY" , 2 , new java . util . Date ( 3000 ) ...
org . junit . Assert . assertEquals ( 0 , violations . size ( ) )
generateCustomEnvironmentName2 ( ) { java . lang . String projectName = "project" ; java . lang . String newName = "ENV2-project" ; when ( environment1 . getName ( ) ) . thenReturn ( ( "ENV1-" + projectName ) ) ; when ( environment2 . getName ( ) ) . thenReturn ( ( "ENV3-" + projectName ) ) ; java . util . List < org ....
org . junit . Assert . assertEquals ( newName , generated )
testPeerDomainSameAuthority ( ) { java . net . URI current = java . net . URI . create ( "ws://gateway.kaazing.test:8001/echo" ) ; java . net . URI redirect = java . net . URI . create ( "ws://gateway.kaazing.test:8001/echo/;e/cbm" ) ; int status = HttpRedirectPolicy . PEER_DOMAIN . compare ( current , redirect ) ; "<A...
org . junit . Assert . assertTrue ( ( status == 0 ) )
testReadFileContentQuietly_exception ( ) { java . io . File output = this . folder . newFolder ( ) ; java . lang . String readS = net . roboconf . core . utils . Utils . readFileContentQuietly ( output , java . util . logging . Logger . getLogger ( getClass ( ) . getName ( ) ) ) ; "<AssertPlaceHolder>" ; } getName ( ) ...
org . junit . Assert . assertEquals ( "" , readS )
testContainmentVsReference_02 ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "grammar<sp>test<sp>with<sp>org.eclipse.xtext.common.Terminals<sp>import<sp>\'http://www.eclipse.org/emf/2002/Ecore\'<sp>EClass:<sp>name=ID<s...
org . junit . Assert . assertEquals ( resource . getErrors ( ) . toString ( ) , 0 , resource . getErrors ( ) . size ( ) )
testExceptions2 ( ) { java . lang . String imei = "" ; try { imei = edu . columbia . cs . psl . test . phosphor . DroidBenchObjTagITCase . taintedString ( "abcde2" ) ; int [ ] arr = new int [ ( ( int ) ( java . lang . Math . sqrt ( 49 ) ) ) ] ; if ( ( arr [ 32 ] ) > 0 ) imei = "" ; } catch ( java . lang . RuntimeExcept...
org . junit . Assert . assertTrue ( ( ( edu . columbia . cs . psl . test . phosphor . DroidBenchObjTagITCase . getTaint ( imei ) ) != 0 ) )
get ( ) { cache . put ( 1 , 1 ) ; "<AssertPlaceHolder>" ; } get ( ) { cache . put ( 1 , 1 ) ; org . junit . Assert . assertEquals ( new org . springframework . cache . support . SimpleValueWrapper ( 1 ) . get ( ) , imcache . get ( 1 ) . get ( ) ) ; }
org . junit . Assert . assertEquals ( new org . springframework . cache . support . SimpleValueWrapper ( 1 ) . get ( ) , imcache . get ( 1 ) . get ( ) )
testDezelfdeVolgnummersMaarVerschillendeNamen ( ) { java . util . List < nl . bzk . brp . model . bericht . kern . PersoonVoornaamBericht > persoonVoornamen = new java . util . ArrayList < nl . bzk . brp . model . bericht . kern . PersoonVoornaamBericht > ( ) ; nl . bzk . brp . model . bericht . kern . PersoonVoornaamB...
org . junit . Assert . assertFalse ( validator . isValid ( persoonVoornamen , null ) )
onMockFactoryProvided2 ( ) { final ro . isdc . wro . model . factory . WroModelFactory mockFactory = org . mockito . Mockito . mock ( ro . isdc . wro . model . factory . WroModelFactory . class ) ; org . mockito . Mockito . when ( mockFactory . create ( ) ) . thenReturn ( new ro . isdc . wro . model . WroModel ( ) ) ; ...
org . junit . Assert . assertNotNull ( factory . create ( ) )
testForwardInsertNormalizationNecessaryMoreBasesSecond ( ) { de . charite . compbio . jannovar . reference . TranscriptPosition txPos = new de . charite . compbio . jannovar . reference . TranscriptPosition ( infoForward , 1 , PositionType . ZERO_BASED ) ; de . charite . compbio . jannovar . reference . GenomePosition ...
org . junit . Assert . assertEquals ( expectedChange , updatedChange )
testSuppressionList ( ) { mockRecipientPrincipalAlias . setAlias ( org . sagebionetworks . repo . manager . MessageManagerImplSESTest . SUPPRESSION_EMAIL ) ; when ( mockNotificationEmailDao . getNotificationEmailForPrincipal ( mockRecipientId ) ) . thenReturn ( mockRecipientPrincipalAlias . getAlias ( ) ) ; java . util...
org . junit . Assert . assertEquals ( errors . toString ( ) , 0 , errors . size ( ) )
updateFullyConfiguredLoadBalancerForErrorPageRollbacks ( ) { try { buildHydratedLb ( ) ; stmAdapter . updateLoadBalancer ( config , lb , lb , null ) ; stmAdapter . setErrorFile ( config , lb , "" ) ; org . junit . Assert . fail ( "Should<sp>have<sp>failed<sp>to<sp>update" ) ; } catch ( java . lang . Exception e ) { "<A...
org . junit . Assert . assertNull ( lb . getUserPages ( ) )
testIterator ( ) { me . prettyprint . hector . api . query . SliceQuery < java . lang . String , java . util . UUID , java . lang . String > query = me . prettyprint . hector . api . factory . HFactory . createSliceQuery ( keyspace , me . prettyprint . cassandra . service . ColumnSliceIteratorTest . se , me . prettypri...
org . junit . Assert . assertEquals ( 1000 , results . size ( ) )
compareToInputNotNullOutputPositive ( ) { final com . freedomotic . environment . GraphEdge objectUnderTest = new com . freedomotic . environment . GraphEdge ( null , 2147483295 , 541065984 ) ; final com . freedomotic . environment . GraphEdge other = new com . freedomotic . environment . GraphEdge ( 34627582 , 2147483...
org . junit . Assert . assertEquals ( 1 , retval )
canConvertExchange ( ) { converter = new edu . zipcloud . cloudstreetmarket . core . converters . IdentifiableToIdConverter ( edu . zipcloud . cloudstreetmarket . core . converters . Exchange . class ) ; "<AssertPlaceHolder>" ; } canConvert ( java . lang . Class ) { return type . isAssignableFrom ( this . type ) ; }
org . junit . Assert . assertTrue ( converter . canConvert ( edu . zipcloud . cloudstreetmarket . core . converters . Exchange . class ) )
testRootFilterRegistration ( ) { org . osgi . util . tracker . ServiceTracker < org . ops4j . pax . web . service . WebContainer , org . ops4j . pax . web . service . WebContainer > tracker = new org . osgi . util . tracker . ServiceTracker ( installWarBundle . getBundleContext ( ) , org . ops4j . pax . web . service ....
org . junit . Assert . assertEquals ( fullContent , writer . toString ( ) )
versionOf ( ) { org . apache . jackrabbit . oak . plugins . document . DocumentStore store = new org . apache . jackrabbit . oak . plugins . document . memory . MemoryDocumentStore ( ) ; org . apache . jackrabbit . oak . plugins . document . FormatVersion v = org . apache . jackrabbit . oak . plugins . document . Forma...
org . junit . Assert . assertSame ( org . apache . jackrabbit . oak . plugins . document . FormatVersion . V0 , v )
testGetModemResetTimeoutMsecNull ( ) { org . eclipse . kura . net . admin . monitor . ModemMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . ModemMonitorServiceImpl ( ) ; java . util . List < org . eclipse . kura . net . NetConfig > netConfigs = new java . util . ArrayList ( ) ; org . eclipse ...
org . junit . Assert . assertEquals ( 0L , result )
int_set ( ) { final org . erlide . engine . util . PreferencesHelper helper = org . erlide . engine . util . PreferencesHelper . getHelper ( org . erlide . core . preferences . PreferencesHelperTest . QUALIFIER ) ; final int val = 314159 ; helper . putInt ( org . erlide . core . preferences . PreferencesHelperTest . KE...
org . junit . Assert . assertEquals ( val , res )
testSystemAccountUsername ( ) { java . lang . String name = "foo" ; policy . setSystemAccountUsername ( name ) ; "<AssertPlaceHolder>" ; } getSystemAccountUsername ( ) { return systemAccountUsername ; }
org . junit . Assert . assertEquals ( name , policy . getSystemAccountUsername ( ) )
testlsdbAge ( ) { defaultLspWrapper . setLsdbAge ( defaultIsisLsdbAge ) ; lsdbAge = defaultLspWrapper . lsdbAge ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( lsdbAge , org . hamcrest . CoreMatchers . is ( defaultIsisLsdbAge ) )
testRemove ( ) { com . liferay . portal . kernel . model . LayoutSet newLayoutSet = addLayoutSet ( ) ; _persistence . remove ( newLayoutSet ) ; com . liferay . portal . kernel . model . LayoutSet existingLayoutSet = _persistence . fetchByPrimaryKey ( newLayoutSet . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPri...
org . junit . Assert . assertNull ( existingLayoutSet )
tupled_A$ ( ) { com . m3 . scalaflavor4j . F2 < java . lang . String , java . lang . Integer , java . lang . Boolean > f = new com . m3 . scalaflavor4j . F2 < java . lang . String , java . lang . Integer , java . lang . Boolean > ( ) { public com . m3 . scalaflavor4j . Boolean apply ( java . lang . String v1 , java . l...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
hasAMutableNameProperty ( ) { com . metservice . kanban . model . WorkItemType workItemType = new com . metservice . kanban . model . WorkItemType ( ) ; workItemType . setName ( "name" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return super . toString ( ) . toLowerCase ( ) ; }
org . junit . Assert . assertThat ( workItemType . getName ( ) , org . hamcrest . CoreMatchers . is ( "name" ) )
filterServiceConfiguration_Change ( ) { org . oscm . internal . vo . VOServicePaymentConfiguration conf = org . oscm . accountservice . bean . PaymentConfigurationFilterTest . createServiceConfiguration ( product . getKey ( ) , PaymentType . CREDIT_CARD ) ; java . util . List < org . oscm . internal . vo . VOServicePay...
org . junit . Assert . assertEquals ( input , list )
testMin ( ) { System . out . println ( "min" ) ; jsat . distributions . ContinuousDistribution dist = new jsat . distributions . FisherSendor ( 0.5 , 3 ) ; "<AssertPlaceHolder>" ; } min ( ) { return Double . NEGATIVE_INFINITY ; }
org . junit . Assert . assertTrue ( ( 0 == ( dist . min ( ) ) ) )
add_embedded_vcards_not_supported ( ) { ezvcard . VCard vcard = new ezvcard . VCard ( ) ; vcard . setFormattedName ( "John<sp>Doe" ) ; vcard . addProperty ( new ezvcard . io . xml . XCardDocumentTest . EmbeddedProperty ( ) ) ; ezvcard . io . xml . XCardDocument xcard = new ezvcard . io . xml . XCardDocument ( ) ; ezvca...
org . junit . Assert . assertTrue ( parsedVCard . getExtendedProperties ( ) . isEmpty ( ) )
testNormal ( ) { org . apache . druid . query . filter . Filter extractionFilter = new org . apache . druid . query . filter . SelectorDimFilter ( "foo" , "extractDimVal" , org . apache . druid . segment . filter . ExtractionDimFilterTest . DIM_EXTRACTION_FN ) . toFilter ( ) ; org . apache . druid . collections . bitma...
org . junit . Assert . assertEquals ( 1 , immutableBitmap . size ( ) )
equalIncreasingByteBuffer ( ) { class TestCase { boolean mExpected ; java . nio . ByteBuffer mBuffer ; int mLength ; int mStart ; public TestCase ( boolean expected , java . nio . ByteBuffer buffer , int length , int start ) { mExpected = expected ; mBuffer = buffer ; mLength = length ; mStart = start ; } } java . util...
org . junit . Assert . assertEquals ( testCase . mExpected , result )
teststringoutput1 ( ) { org . apache . tools . ant . types . resources . StringResource r = new org . apache . tools . ant . types . resources . StringResource ( ) ; testoutputbe ( r ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( "foo" , r . getValue ( ) )
openFile ( ) { java . io . File testDB = org . sqlite . ConnectionTest . copyToTemp ( "sample.db" ) ; "<AssertPlaceHolder>" ; java . sql . Connection conn = java . sql . DriverManager . getConnection ( java . lang . String . format ( "jdbc:sqlite:%s" , testDB ) ) ; conn . close ( ) ; } copyToTemp ( java . lang . String...
org . junit . Assert . assertTrue ( testDB . exists ( ) )
testLocalIJ1Threshold ( ) { ops . run ( net . imagej . ops . Ops . Threshold . IJ1 . class , out , in , new net . imglib2 . algorithm . neighborhood . RectangleShape ( 1 , false ) , new net . imglib2 . outofbounds . OutOfBoundsMirrorFactory < net . imglib2 . type . numeric . integer . ByteType , net . imglib2 . img . I...
org . junit . Assert . assertEquals ( true , out . firstElement ( ) . get ( ) )
testMatchExactlyVlanNull ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "type" , "aaa" ) ; put ( "eth_type" , "12" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionPushMplsQuery ( actions ) ; org . o3proje...
org . junit . Assert . assertThat ( target . matchExactly ( ( ( org . o3project . odenos . core . component . network . flow . basic . FlowAction ) ( action ) ) ) , org . hamcrest . CoreMatchers . is ( true ) )
testAccessAttachment ( ) { final org . switchyard . component . bpm . service . BPMServiceTests . Holder holder = new org . switchyard . component . bpm . service . BPMServiceTests . Holder ( ) ; org . switchyard . component . bpm . config . model . BPMComponentImplementationModel bci_model = ( ( org . switchyard . com...
org . junit . Assert . assertEquals ( "someAttachData" , holder . getValue ( ) )
testIsAssignableFromWithTwoClasses ( ) { com . googlecode . jtype . Generic < java . util . List > listType = com . googlecode . jtype . Generic . get ( java . util . List . class ) ; "<AssertPlaceHolder>" ; } isAssignableFrom ( com . googlecode . jtype . Generic , java . lang . Class ) { java . lang . reflect . Type t...
org . junit . Assert . assertTrue ( com . picocontainer . JTypeHelper . isAssignableFrom ( listType , java . util . List . class ) )
execWithBlankVault ( ) { final joptsimple . OptionSet options = optionParser . parse ( "--list-jobs" , java . util . UUID . randomUUID ( ) . toString ( ) ) ; final de . kopis . glacier . commands . RequestArchivesListCommand command = new de . kopis . glacier . commands . RequestArchivesListCommand ( client , sqs , sns...
org . junit . Assert . assertFalse ( command . valid ( options , optionParser ) )
testGenerateForCaseManagementDiagramMarshaller ( ) { org . kie . workbench . common . stunner . bpmn . backend . legacy . resource . JBPMBpmn2ResourceImpl bpmn2Resource = mock ( org . kie . workbench . common . stunner . bpmn . backend . legacy . resource . JBPMBpmn2ResourceImpl . class ) ; org . eclipse . emf . common...
org . junit . Assert . assertEquals ( result , definitions )
testBuildWithExmptyParametersAndDisabledSecurityConstraint ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . specoffer . SpecOffer context = new org . lnu . is . domain . specoffer . SpecOffer ( ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>SpecOffer<sp>e<sp>WHERE<sp>e.status=:status<sp>...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
optionRetrievalTest ( ) { org . aesh . tty . TestConnection connection = new org . aesh . tty . TestConnection ( false ) ; org . aesh . command . map . MapCommandTest . DynCommand1 cmd = new org . aesh . command . map . MapCommandTest . DynCommand1 ( ) ; org . aesh . command . map . MapCommandTest . DynamicOptionsCount...
org . junit . Assert . assertEquals ( provider . count , 1 )
benchmarkWithQuickFIX ( ) { long f1xDecoding = org . f1x . v1 . Test_DecodingNewOrderSingle . getDecodingTimeF1X ( ) ; System . out . println ( ( ( "Average<sp>F1X<sp>encoding<sp>time:<sp>" + f1xDecoding ) + "<sp>ns.<sp>per<sp>message" ) ) ; long qfixDecoding = org . f1x . v1 . Test_DecodingNewOrderSingle . getDecoding...
org . junit . Assert . assertTrue ( ( ( f1xDecoding * expectedAdvantage ) < qfixDecoding ) )
testEqualsWhenEqual ( ) { edu . illinois . library . cantaloupe . http . Header h1 = new edu . illinois . library . cantaloupe . http . Header ( "1" , "2" ) ; edu . illinois . library . cantaloupe . http . Header h2 = new edu . illinois . library . cantaloupe . http . Header ( "1" , "2" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( h1 , h2 )
testToCreateNewInnerClassInstanceDirectly ( ) { org . baeldung . mocks . jmockit . AdvancedCollaborator . InnerAdvancedCollaborator innerCollaborator = mockit . Deencapsulation . newInnerInstance ( org . baeldung . mocks . jmockit . AdvancedCollaborator . InnerAdvancedCollaborator . class , mock ) ; "<AssertPlaceHolder...
org . junit . Assert . assertNotNull ( innerCollaborator )