input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testAndExample ( ) { org . apache . ibatis . session . SqlSession sqlSession = tk . mybatis . mapper . mapper . MybatisHelper . getSqlSession ( ) ; try { tk . mybatis . mapper . mapper . CountryMapper mapper = sqlSession . getMapper ( tk . mybatis . mapper . mapper . CountryMapper . class ) ; tk . mybatis . mapper . en...
org . junit . Assert . assertEquals ( 1 , countries . size ( ) )
testGetErrorCode_1 ( ) { org . jumbune . utils . exception . JumbuneException fixture = new org . jumbune . utils . exception . JumbuneException ( org . jumbune . utils . exception . ErrorCodesAndMessages . COULD_NOT_CREATE_DIRECTORY ) ; fixture . setErrorCode ( 1 ) ; fixture . setErrorMessage ( "" ) ; int result = fix...
org . junit . Assert . assertEquals ( 1 , result )
shouldInjectDecoratedProcessor ( ) { final ro . isdc . wro . model . group . processor . TestInjector . TestProcessor testProcessor = new ro . isdc . wro . model . group . processor . TestInjector . TestProcessor ( ) ; final ro . isdc . wro . model . resource . processor . ResourcePreProcessor processor = ro . isdc . w...
org . junit . Assert . assertNotNull ( testProcessor . context )
testScanForUTF8 ( ) { com . twelvemonkeys . imageio . metadata . xmp . InputStream stream = createXMPStream ( com . twelvemonkeys . imageio . metadata . xmp . XMPScannerTest . XMP , "UTF-8" ) ; com . twelvemonkeys . imageio . metadata . xmp . Reader reader = com . twelvemonkeys . imageio . metadata . xmp . XMPScanner ....
org . junit . Assert . assertNotNull ( reader )
testKeepFormatting2 ( ) { java . lang . String act = mig . migrate ( "<sp>foo<sp>bar<sp>" , "<sp>foo<sp>bar<sp>" , ws ) ; "<AssertPlaceHolder>" ; } migrate ( java . lang . String , java . lang . String , java . util . regex . Pattern ) { if ( ( org . eclipse . xtext . util . Strings . isEmpty ( toBeFormattedString ) ) ...
org . junit . Assert . assertEquals ( "<sp>foo<sp>bar<sp>" , act )
deserializeNull ( ) { final com . amazonaws . encryptionsdk . model . CipherFrameHeaders cipherFrameHeaders = new com . amazonaws . encryptionsdk . model . CipherFrameHeaders ( ) ; final int deserializedBytes = cipherFrameHeaders . deserialize ( null , 0 ) ; "<AssertPlaceHolder>" ; } deserialize ( byte [ ] , int ) { if...
org . junit . Assert . assertEquals ( 0 , deserializedBytes )
givenViewWithViewAddOnFactory_whenCreateViewAddOn_thenReturnInstance ( ) { org . robobinding . widgetaddon . ViewAddOnFactory factory = mock ( org . robobinding . widgetaddon . ViewAddOnFactory . class ) ; org . robobinding . widgetaddon . ViewAddOn viewAddOn = mock ( org . robobinding . widgetaddon . ViewAddOn . class...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( viewAddOn ) )
testGetProjectByIdUser1_1 ( ) { org . eclipse . sw360 . datahandler . thrift . projects . Project project1 = handler . getProjectById ( "P1" , org . eclipse . sw360 . projects . ProjectHandlerTest . user1 ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( "P1" , project1 . getId ( ) )
shouldDecodeLegacyLong ( ) { byte [ ] bytes = com . couchbase . client . java . transcoder . LegacyTranscoder . encodeNum ( Long . MAX_VALUE , 8 ) ; com . couchbase . client . deps . io . netty . buffer . ByteBuf content = com . couchbase . client . deps . io . netty . buffer . Unpooled . buffer ( ) . writeBytes ( byte...
org . junit . Assert . assertEquals ( Long . MAX_VALUE , ( ( long ) ( decoded . content ( ) ) ) )
testForNoun ( ) { final net . moznion . gimei . noun . Noun noun = net . moznion . gimei . Gimei . generateNoun ( ) ; log . info ( noun . kanji ( ) ) ; log . info ( noun . hiragana ( ) ) ; log . info ( noun . katakana ( ) ) ; "<AssertPlaceHolder>" ; } katakana ( ) { return noun . katakana ( ) ; }
org . junit . Assert . assertTrue ( true )
testConvert ( ) { java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; java . lang . String description = "first<sp>death" ; org . lnu . is . resource . enrolment . status . type . EnrolmentStatusTypeResource source = new org . lnu . is . resource . enrolment . status . type . Enrolment...
org . junit . Assert . assertEquals ( expected , actual )
testSplitForMainTableWithoutIndexShouldBeSuccessfUl ( ) { org . apache . hadoop . hbase . client . HBaseAdmin admin = org . apache . hadoop . hbase . index . coprocessor . regionserver . TestIndexRegionObserver . UTIL . getHBaseAdmin ( ) ; org . apache . hadoop . conf . Configuration conf = org . apache . hadoop . hbas...
org . junit . Assert . assertEquals ( 20 , mainTableCount )
test_BrowserFunction_callback_with_javaReturningInt ( ) { org . junit . Assume . assumeFalse ( webkit1SkipMsg ( ) , isWebkit1 ) ; java . util . concurrent . atomic . AtomicInteger returnInt = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; class JavascriptCallback extends org . eclipse . swt . browser . B...
org . junit . Assert . assertTrue ( message , passed )
testDecodeRepositoryPath ( ) { final java . lang . String testPath = "http://seylermartialarts.com/index.html" ; final java . lang . String desiredResult = "http///seylermartialarts.com/index.html" ; java . lang . String decode = org . pentaho . reporting . designer . extensions . pentaho . repository . util . Reposito...
org . junit . Assert . assertEquals ( desiredResult , decode )
clientCalculatesCrc32FromCompressedData_WhenCrc32IsValid ( ) { stubFor ( post ( urlEqualTo ( software . amazon . awssdk . protocol . tests . crc32 . RestJsonCrc32ChecksumTests . RESOURCE_PATH ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) . withHeader ( "Content-Encoding" , "gzip" ) . withHeader ( "x-amz-crc32" ...
org . junit . Assert . assertEquals ( "foo" , result . stringMember ( ) )
properUseOfInflater ( ) { org . apache . commons . compress . archivers . zip . ZipFile zf = null ; org . apache . commons . compress . archivers . zip . ZipArchiveInputStream in = null ; try { zf = new org . apache . commons . compress . archivers . zip . ZipFile ( org . apache . commons . compress . AbstractTestCase ...
org . junit . Assert . assertTrue ( ( 0 < ( in . read ( ) ) ) )
testMatchExactlyVlanNull ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "type" , "aaa" ) ; put ( "vlan_vid" , "12" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionSetFieldQuery ( actions ) ; org . o3proje...
org . junit . Assert . assertThat ( target . matchExactly ( ( ( org . o3project . odenos . core . component . network . flow . basic . FlowAction ) ( action ) ) ) , org . hamcrest . CoreMatchers . is ( false ) )
testEJBQLSelectScalar ( ) { createTwoRecords ( ) ; org . apache . cayenne . query . EJBQLQuery query = new org . apache . cayenne . query . EJBQLQuery ( "SELECT<sp>COUNT(a)<sp>FROM<sp>MtTable1<sp>a" ) ; java . util . List < java . lang . Long > results = context . performQuery ( query ) ; "<AssertPlaceHolder>" ; } get ...
org . junit . Assert . assertEquals ( java . lang . Long . valueOf ( 2 ) , results . get ( 0 ) )
testCommonRecord ( ) { nl . jqno . equalsverifier . EqualsVerifier . forClass ( org . kaaproject . kaa . client . common . DefaultCommonRecord . class ) . verify ( ) ; org . apache . avro . Schema schema = mock ( org . apache . avro . Schema . class ) ; org . kaaproject . kaa . client . common . CommonRecord record = n...
org . junit . Assert . assertEquals ( uuid , record . getUuid ( ) )
testImpl ( ) { final org . estatio . module . base . dom . UdoDomainObject_Test . InjectClockService . SomeDomainObject someDomainObject = new org . estatio . module . base . dom . UdoDomainObject_Test . InjectClockService . SomeDomainObject ( ) ; someDomainObject . clockService = mockClockService ; "<AssertPlaceHolder...
org . junit . Assert . assertThat ( someDomainObject . getClockService ( ) , org . hamcrest . CoreMatchers . is ( mockClockService ) )
testPLFM_4829 ( ) { currentBatch = new java . util . LinkedList ( ) ; backupFileStream . writeBackupFile ( byteArrayOutputStream , currentBatch , backupAliasType , maximumRowsPerFile ) ; org . apache . commons . io . IOUtils . closeQuietly ( zipOutputStream ) ; java . io . ByteArrayInputStream input = new java . io . B...
org . junit . Assert . assertTrue ( allResults . isEmpty ( ) )
testSingle1 ( ) { org . jparsec . examples . statement . ast . SingleExpression exp = org . jparsec . examples . statement . FirstTest . singleExpression01 ( ) . from ( org . jparsec . examples . statement . FirstTest . TOKENIZER , org . jparsec . examples . statement . FirstTest . IGNORED ) . parse ( "readonly" ) ; "<...
org . junit . Assert . assertEquals ( "readonly" , exp . s )
testGetREM ( ) { java . lang . String actual = table . getREM ( ) ; java . lang . String expected = "rem" ; "<AssertPlaceHolder>" ; } getREM ( ) { return "rem" ; }
org . junit . Assert . assertEquals ( expected , actual )
testNodeConnectorIDToPortNoString ( ) { java . lang . String [ ] nodeConnectorIDs = new java . lang . String [ ] { "openflow:2" , "openflow:2:3411" , "INPORT" , "openflow:628192264910264962" } ; java . lang . String [ ] expectedPortNoStrings = new java . lang . String [ ] { "2" , "3411" , "INPORT" , "628192264910264962...
org . junit . Assert . assertEquals ( expectedPortNoStrings [ i ] , portNoString )
testRemove ( ) { java . util . List < java . lang . String > list = new java . util . ArrayList < java . lang . String > ( java . util . Arrays . asList ( "a" , "b" , "c" ) ) ; com . annimon . stream . iterator . IndexedIterator < java . lang . String > iterator = new com . annimon . stream . iterator . IndexedIterator...
org . junit . Assert . assertThat ( list , org . hamcrest . Matchers . is ( java . util . Arrays . asList ( "a" , "c" ) ) )
addTSL ( ) { org . digidoc4j . TSLCertificateSource source = this . configuration . getTSL ( ) ; int numberOfTSLCertificates = source . getCertificates ( ) . size ( ) ; this . addCertificateToTSL ( java . nio . file . Paths . get ( "src/test/resources/testFiles/certs/Juur-SK.pem.crt" ) , source ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( ( numberOfTSLCertificates + 1 ) , this . configuration . getTSL ( ) . getCertificates ( ) . size ( ) )
reg_layout_1 ( ) { for ( java . lang . String s : layoutNames ) "<AssertPlaceHolder>" ; } fetch ( java . lang . String ) { if ( layoutTypeName == null ) throw new java . lang . IllegalArgumentException ( "LayoutType.convert:<sp>null<sp>not<sp>allowed" ) ; com . talis . hbase . rdf . store . LayoutType t = com . talis ....
org . junit . Assert . assertNotNull ( com . talis . hbase . rdf . store . LayoutType . fetch ( s ) )
writeGlobalReadGlobalWithResolutionStrategyTest ( ) { preferenceStorageServiceBackendImpl . write ( allUsersEntireApplicationScope , "my.preference.key" , "global_value" ) ; final java . lang . String value = preferenceStorageServiceBackendImpl . read ( scopeResolutionStrategyInfo , "my.preference.key" ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( "global_value" , value )
testHasDifferenceInParameters_NoDifference ( ) { final com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig one = new com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig ( ) ; final com . igormaznitsa . mindmap . swing . panel . MindMapPanelConfig two = new com . igormaznitsa . mindmap . swin...
org . junit . Assert . assertFalse ( one . hasDifferenceInParameters ( two ) )
testIsRunSequentiallyParentTrue ( ) { hudson . matrix . MatrixProject parentProject = new hudson . matrix . MatrixProjectTest . MatrixProjectMock ( "parent" ) ; parentProject . setRunSequentially ( true ) ; hudson . matrix . MatrixProject childProject1 = new hudson . matrix . MatrixProjectTest . MatrixProjectMock ( "ch...
org . junit . Assert . assertTrue ( childProject1 . isRunSequentially ( ) )
testNormality ( ) { formatter . setFile ( folder . getRoot ( ) ) ; formatResult ( aResult ( "foo.js" ) ) ; java . io . File expected = new java . io . File ( folder . getRoot ( ) , "TEST-foo.js.xml" ) ; "<AssertPlaceHolder>" ; } aResult ( java . lang . String ) { return new com . googlecode . jslint4java . JSLintResult...
org . junit . Assert . assertTrue ( expected . exists ( ) )
testProducerRecordSerializableWithoutPartition ( ) { org . apache . kafka . clients . producer . ProducerRecord < java . lang . String , java . lang . String > decodedRecord = verifySerialization ( null , java . lang . System . currentTimeMillis ( ) ) ; "<AssertPlaceHolder>" ; } verifySerialization ( java . lang . Inte...
org . junit . Assert . assertNull ( decodedRecord . partition ( ) )
getAccessModifier_A$String ( ) { org . junithelper . core . config . Configuration config = new org . junithelper . core . config . Configuration ( ) ; org . junithelper . core . extractor . ConstructorMetaExtractor target = new org . junithelper . core . extractor . ConstructorMetaExtractor ( config ) ; java . lang . ...
org . junit . Assert . assertEquals ( expected , actual )
testUpdateLayoutPageTemplateEntryStatus ( ) { 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 ( WorkflowConstants . STATUS_APPROVED , layoutPageTemplateEntry . getStatus ( ) )
addResponse ( ) { org . apache . shindig . gadgets . http . HttpRequest request = new org . apache . shindig . gadgets . http . HttpRequest ( org . apache . shindig . gadgets . http . DefaultHttpCacheTest . DEFAULT_URI ) ; org . apache . shindig . gadgets . http . HttpResponse response = new org . apache . shindig . ga...
org . junit . Assert . assertEquals ( response , cache . getElement ( key ) )
testMolecularFormula ( ) { org . openscience . cdk . interfaces . IMolecularFormula mf = new org . openscience . cdk . silent . MolecularFormula ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( mf )
valueSizeOk ( ) { kyotoDb . set ( "existent" . getBytes ( fm . last . commons . kyoto . factory . KyotoDbImplTest . UTF_8 ) , "value" . getBytes ( fm . last . commons . kyoto . factory . KyotoDbImplTest . UTF_8 ) ) ; int size = kyotoDb . valueSize ( "existent" ) ; "<AssertPlaceHolder>" ; } valueSize ( java . lang . Str...
org . junit . Assert . assertThat ( size , org . hamcrest . CoreMatchers . is ( 5 ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . asset . auto . tagger . model . AssetAutoTaggerEntry . class , _dynamicQueryClassLoader ) ; dynamicQuery ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testSetFeaturesPositive ( ) { System . out . println ( "testSetFeaturesPositive" ) ; java . lang . Integer value = 1 ; edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder instance = new edu . oswego . csc480_hci521_2013 . shared . h2o . urlbuilders . RFBuilder ( "test.hex" ) ; java . lang . Strin...
org . junit . Assert . assertEquals ( expResult , result )
test ( ) { com . pengyifan . leetcode . commons . ListNode n1 = new com . pengyifan . leetcode . commons . ListNode ( 1 ) ; com . pengyifan . leetcode . commons . ListNode n2 = new com . pengyifan . leetcode . commons . ListNode ( 2 ) ; n1 . next = n2 ; "<AssertPlaceHolder>" ; } detectCycle ( com . pengyifan . leetcode...
org . junit . Assert . assertNull ( t . detectCycle ( n1 ) )
shouldBuildUpsertStatementWithNoIdentifierQuoting ( ) { quoteIdentfiiers = io . confluent . connect . jdbc . util . QuoteMethod . NEVER ; dialect = createDialect ( ) ; java . lang . String expected = "merge<sp>into<sp>myTable<sp>using<sp>(values(?,<sp>?,<sp>?,<sp>?,<sp>?,<sp>?))<sp>" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "merg...
org . junit . Assert . assertEquals ( expected , sql )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . ChannelMarkedEvent event = new com . github . seratch . jslack . api . model . event . ChannelMarkedEvent ( ) ; event . setChann...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
copyEmptyStringValidOutputStreamNegBufSz ( ) { java . io . ByteArrayOutputStream OutputStream = new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseByteArrayOutputStream ( ) ; org . apache . maven . shared . utils . io . IOUtil . copy ( org . apache . maven . shared . utils . io . IOUtilTest . emptyS...
org . junit . Assert . assertThat ( OutputStream . toByteArray ( ) , org . hamcrest . CoreMatchers . is ( org . apache . maven . shared . utils . io . IOUtilTest . emptyString ( ) . getBytes ( ) ) )
testGetAll ( ) { com . dianping . paas . api . controller . AppControllerTest . logger . info ( "start<sp>test<sp>getAll.." ) ; java . util . List < com . dianping . paas . core . dal . entity . AppEntity > appEntityList = getResponseAsBean ( "/v1/apps" ) ; "<AssertPlaceHolder>" ; com . dianping . paas . api . controll...
org . junit . Assert . assertTrue ( ( ( appEntityList . size ( ) ) > 0 ) )
testAddNotificationForOriginalRecips_addSingleRecip_assertNotificationsAdded ( ) { org . nhindirect . monitor . processor . impl . TimeoutDupStateManager mgr = new org . nhindirect . monitor . processor . impl . TimeoutDupStateManager ( ) ; mgr . setDao ( notifDao ) ; final org . nhindirect . common . tx . model . Tx t...
org . junit . Assert . assertTrue ( recAddresses . contains ( "me@you.com" ) )
testGetIdNoPairtree ( ) { final org . fcrepo . kernel . api . services . functions . UniqueValueSupplier defaultPidMinter = new org . fcrepo . kernel . api . services . functions . ConfigurableHierarchicalSupplier ( 0 , 0 ) ; final java . lang . String id = defaultPidMinter . get ( ) ; final int parts = id . split ( "/...
org . junit . Assert . assertEquals ( 1 , parts )
allocateFirstDiskIfNoInfoIsProvided ( ) { org . jenkinsci . plugins . ewm . definitions . Disk disk1 = org . jenkinsci . plugins . ewm . TestUtil . createDisk ( new org . jenkinsci . plugins . ewm . providers . NoDiskInfo ( ) ) ; org . jenkinsci . plugins . ewm . definitions . Disk disk2 = org . jenkinsci . plugins . e...
org . junit . Assert . assertThat ( allocatedDisk , org . hamcrest . Matchers . is ( disk1 ) )
test_search_with_moduleName_componentNames_flowNames_success ( ) { java . nio . file . Path path = createTempDir ( ) ; org . apache . solr . core . SolrResourceLoader loader = new org . apache . solr . core . SolrResourceLoader ( path ) ; org . apache . solr . core . NodeConfig config = new org . apache . solr . core ....
org . junit . Assert . assertEquals ( "testnode" 4 , results . getResultSize ( ) , 10 )
shouldApplyDeleteUniquenessConstraintRuleSchemaRuleCommandToTheStore ( ) { final org . neo4j . kernel . impl . api . BatchTransactionApplier applier = newApplier ( false ) ; final org . neo4j . kernel . impl . store . record . DynamicRecord record = org . neo4j . kernel . impl . store . record . DynamicRecord . dynamic...
org . junit . Assert . assertFalse ( result )
testAppendEmptyBytes ( ) { contentBuffer . append ( new java . io . ByteArrayInputStream ( new byte [ 0 ] ) ) ; byte [ ] content = contentBuffer . getContent ( ) ; "<AssertPlaceHolder>" ; } getContent ( ) { if ( ( viewer ) != null ) { return viewer . getContent ( ) ; } return null ; }
org . junit . Assert . assertEquals ( 0 , content . length )
getMemberships_shouldReturnVoidedMemberships ( ) { executeDataSet ( org . openmrs . api . CohortServiceTest . COHORT_XML ) ; org . openmrs . CohortMembership voidedMembership = new org . openmrs . CohortMembership ( 7 ) ; voidedMembership . setVoided ( true ) ; voidedMembership . setVoidedBy ( org . openmrs . api . con...
org . junit . Assert . assertEquals ( 3 , allMemberships . size ( ) )
getEntityGroupsTest ( ) { final java . util . Set < java . lang . String > entityGroups = utils . getEntityGroups ( ) ; final java . util . LinkedHashSet < java . lang . String > expected = new java . util . LinkedHashSet ( 2 ) ; expected . add ( TestGroups . ENTITY ) ; expected . add ( TestGroups . ENTITY_2 ) ; "<Asse...
org . junit . Assert . assertEquals ( expected , entityGroups )
testResolveAttemptToGetInstanceId ( ) { final java . lang . String resultId = "i-5325f23" ; java . lang . String result = org . kaazing . gateway . util . parse . ConfigParameter . resolveCloudInstanceId ( new org . kaazing . gateway . util . http . UtilityHttpClient ( ) { @ org . kaazing . gateway . util . parse . Ove...
org . junit . Assert . assertTrue ( result . equals ( resultId ) )
testBuildReportChunkSuccessfull ( ) { instance . buildReportChunk ( tchunk , doc , true ) ; java . util . ArrayList < java . lang . Object [ ] > events = docListener . getCapturedEvents ( ) ; "<AssertPlaceHolder>" ; java . lang . Object [ ] event = events . get ( 0 ) ; confirmParagraphAdded ( event , "CONTEXT:<sp>ERROR...
org . junit . Assert . assertTrue ( ( ( events . size ( ) ) == 5 ) )
codeParameterTest ( ) { @ com . b2international . snowowl . fhir . tests . serialization . parameterized . SuppressWarnings ( "unused" ) @ com . fasterxml . jackson . annotation . JsonPropertyOrder ( { "parameterName" } ) class Test { private com . b2international . snowowl . fhir . core . model . dt . Code parameterNa...
org . junit . Assert . assertEquals ( expected , objectMapper . writeValueAsString ( fhirParameters ) )
testBuildErrorIDGenerator_forSequenceGeneration ( ) { boolean deleteLibraryFlag = deleteTypeLibrary ( org . ebayopensource . turmeric . tools . errorlibrary . ErrorIdGeneratorTests . MARKET_PLACES_STORE_LOCATION , ( ( org . ebayopensource . turmeric . tools . errorlibrary . ErrorIdGeneratorTests . MARKET_PLACES_ORG_NAM...
org . junit . Assert . assertTrue ( ( ( id2 - id ) == 1 ) )
testComplexGlobalFunctionWithShort ( ) { java . lang . String str = ( ( ( ( ( ( ( ( ( ( ( ( ( ( "package<sp>org.mypkg;" + "import<sp>" ) + ( org . drools . modelcompiler . GlobalTest . Family . class . getCanonicalName ( ) ) ) + ";" ) + "import<sp>" ) + ( org . drools . modelcompiler . domain . Person . class . getCano...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
testSetEffectiveServerResponsePolicy ( ) { engine = new org . apache . cxf . ws . policy . PolicyEngineImpl ( ) ; org . apache . cxf . service . model . EndpointInfo ei = createMockEndpointInfo ( ) ; org . apache . cxf . service . model . BindingOperationInfo boi = createMockBindingOperationInfo ( ) ; org . apache . cx...
org . junit . Assert . assertSame ( effectivePolicy , engine . getEffectiveServerResponsePolicy ( ei , boi , ( ( org . apache . cxf . transport . Destination ) ( null ) ) , null , msg ) )
testCartesianCollection_SingleValues ( ) { org . apache . crunch . PCollection < java . lang . String > letters = org . apache . crunch . impl . mem . MemPipeline . typedCollectionOf ( org . apache . crunch . types . writable . Writables . strings ( ) , "a" , "b" ) ; org . apache . crunch . PCollection < java . lang . ...
org . junit . Assert . assertEquals ( expectedResults , actualResults )
withErrorListenerMethodShouldReturnSameInstanceOfBuilder ( ) { java . lang . String url = "http://test" ; com . navercorp . volleyextensions . volleyer . http . HttpMethod method = com . navercorp . volleyextensions . volleyer . http . HttpMethod . GET ; com . navercorp . volleyextensions . volleyer . http . HttpConten...
org . junit . Assert . assertTrue ( ( builder == newBuilder ) )
nullItemCaptionGenerator ( ) { selectMenuPath ( "Component" , "Item<sp>Generator" , "Item<sp>Caption<sp>Generator" , "Null<sp>Caption<sp>Generator" ) ; for ( java . lang . String text : getTwinColSelect ( ) . getOptions ( ) ) { "<AssertPlaceHolder>" ; } } getOptions ( ) { return getOptionElements ( ) . stream ( ) . map...
org . junit . Assert . assertEquals ( "" , text )
deserializeShouldUseBaseResponseDeserializer ( ) { when ( mockBaseResponseDeserializer . deserialize ( toTest ) ) . thenReturn ( 10 ) ; "<AssertPlaceHolder>" ; } deserialize ( ) { return baseResponseDeserializer . < T > deserialize ( this ) ; }
org . junit . Assert . assertEquals ( 10 , toTest . deserialize ( ) )
testInsertStringField_Blank ( ) { com . jmethods . catatumbo . entities . StringField entity = new com . jmethods . catatumbo . entities . StringField ( ) ; java . lang . String name = "" ; entity . setName ( name ) ; entity = com . jmethods . catatumbo . EntityManagerTest . em . insert ( entity ) ; entity = com . jmet...
org . junit . Assert . assertTrue ( ( ( ( entity . getId ( ) ) > 0 ) && ( entity . getName ( ) . equals ( name ) ) ) )
testListCategoryLevels_WithParentCategory ( ) { try { java . util . List < java . lang . Integer > categoryIds = getTestRunMessageValue ( "categoryIds" ) ; java . util . List < com . magento . api . CatalogCategoryEntityNoChildren > categories = runFlowAndGetPayload ( "list-category-levels-with-parent-category" ) ; "<A...
org . junit . Assert . assertEquals ( ( ( categoryIds . size ( ) ) + 1 ) , categories . size ( ) )
shouldReturnTrueWhenCheckIfIsMoreThatFiveDays ( ) { given ( ppsReportXlsHelper . getNumberOfDaysBetweenGivenDates ( report ) ) . willReturn ( 3 ) ; boolean result = hooks . checkIfIsMoreThatFiveDays ( reportDD , report ) ; "<AssertPlaceHolder>" ; verify ( report , never ( ) ) . addError ( org . mockito . Mockito . any ...
org . junit . Assert . assertTrue ( result )
init ( ) { com . asakusafw . runtime . value . StringOption option = new com . asakusafw . runtime . value . StringOption ( ) ; "<AssertPlaceHolder>" ; } isNull ( ) { return nullValue ; }
org . junit . Assert . assertThat ( option . isNull ( ) , is ( true ) )
testArrayOfTemplatesInTemplate ( ) { java . lang . String template = "<foo>!" ; org . stringtemplate . v4 . ST st = new org . stringtemplate . v4 . ST ( template ) ; org . stringtemplate . v4 . ST [ ] t = new org . stringtemplate . v4 . ST [ ] { new org . stringtemplate . v4 . ST ( "hi" ) , new org . stringtemplate . v...
org . junit . Assert . assertEquals ( expected , result )
incomingConnectionsOrder ( ) { final com . github . rinde . rinsim . geom . Point incoming = new com . github . rinde . rinsim . geom . Point ( 0 , 0 ) ; final com . github . rinde . rinsim . geom . Point p0 = new com . github . rinde . rinsim . geom . Point ( 1 , 0 ) ; final com . github . rinde . rinsim . geom . Poin...
org . junit . Assert . assertSame ( incomingConn . get ( i ) , points . get ( i ) )
onNewActivity ( ) { prepareGetMinutes ( ) ; name . pehl . karaka . shared . model . Activity activity = td . newActivity ( ) ; cut . currentActivity = activity ; cut . onActivityChanged ( td . newActivityChangedEvent ( name . pehl . karaka . client . activity . presenter . NEW ) ) ; "<AssertPlaceHolder>" ; verify ( vie...
org . junit . Assert . assertSame ( activity , cut . currentActivity )
testGetTypedArrayIntValue_WithArrayBuffer ( ) { com . eclipsesource . v8 . V8ArrayBuffer buffer = new com . eclipsesource . v8 . V8ArrayBuffer ( v8 , 4 ) ; v8 . add ( "buf" , buffer ) ; com . eclipsesource . v8 . V8Array result = ( ( com . eclipsesource . v8 . V8Array ) ( v8 . executeScript ( "var<sp>ints<sp>=<sp>new<s...
org . junit . Assert . assertEquals ( ( ( short ) ( 7 ) ) , result . get ( 0 ) )
displayMap ( ) { int [ ] keys = new int [ ] { 1 , 18 , 5 } ; java . lang . String [ ] values = new java . lang . String [ ] { "John" , "Jim" , "Jane" } ; java . util . Map < java . lang . Integer , java . lang . String > map = app . buildMap ( keys , values ) ; java . lang . String expectedDisplay = "John->1:Jim->18:Ja...
org . junit . Assert . assertEquals ( expectedDisplay , app . displayMap ( map ) )
synchronizeShouldNeverReturnNull ( ) { org . communitybridge . synchronization . PlayerState newState = synchronizer . synchronize ( environment , player , USER_ID , previous , current , result ) ; "<AssertPlaceHolder>" ; } synchronize ( org . communitybridge . main . Environment , org . bukkit . entity . Player , java...
org . junit . Assert . assertNotNull ( newState )
testGetItemBorder_onDisabled ( ) { item . setEnabled ( false ) ; org . eclipse . rap . rwt . theme . BoxDimensions actual = org . eclipse . rap . rwt . internal . theme . ToolBarThemeAdapter_Test . getThemeAdapter ( toolBar ) . getItemBorder ( item ) ; "<AssertPlaceHolder>" ; } getItemBorder ( org . eclipse . swt . wid...
org . junit . Assert . assertEquals ( new org . eclipse . rap . rwt . theme . BoxDimensions ( 4 , 4 , 4 , 4 ) , actual )
item ( ) { org . hawkular . client . android . backend . model . Alert alert = generateAlert ( ) ; java . util . List < org . hawkular . client . android . backend . model . Alert > alerts = new java . util . ArrayList ( ) ; alerts . add ( alert ) ; alerts . addAll ( generateAlerts ( ) ) ; org . hawkular . client . and...
org . junit . Assert . assertThat ( alertsAdapter . getItem ( 0 ) , org . hamcrest . core . Is . is ( alert ) )
testDisassociatePolicyGroupFromDomain_noEntityManager_assertException ( ) { final org . nhindirect . config . store . dao . impl . CertPolicyDaoImpl dao = new org . nhindirect . config . store . dao . impl . CertPolicyDaoImpl ( ) ; boolean exceptionOccured = false ; try { dao . disassociatePolicyGroupFromDomain ( 1234 ...
org . junit . Assert . assertTrue ( exceptionOccured )
testWritingSymtabWithExtraAnnotations ( ) { java . lang . String [ ] annotations = new java . lang . String [ ] { software . amazon . ion . SystemSymbols . ION_SYMBOL_TABLE , software . amazon . ion . SystemSymbols . ION_SYMBOL_TABLE } ; iw = makeWriter ( ) ; iw . setTypeAnnotations ( annotations ) ; iw . stepIn ( IonT...
org . junit . Assert . assertArrayEquals ( annotations , v . getTypeAnnotations ( ) )
testDatumHuwelijkIsVandaag ( ) { nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht huwelijk = new nl . bzk . brp . util . RelatieBuilder < nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht > ( ) . bouwHuwlijkRelatie ( ) . setDatumAanvang ( nl . bzk . brp...
org . junit . Assert . assertTrue ( meldingen . isEmpty ( ) )
testKieSession ( ) { org . kie . api . runtime . KieSession ksession = ( ( org . kie . api . runtime . KieSession ) ( org . kie . spring . tests . KieSpringComponentScanTest . context . getBean ( "ksession2" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ksession )
testToBeanToJson ( ) { org . tests . json . transientproperties . EJsonTransientObject bean = new org . tests . json . transientproperties . EJsonTransientObject ( ) ; bean . setId ( 99L ) ; bean . setName ( null ) ; io . ebean . text . json . JsonWriteOptions options = new io . ebean . text . json . JsonWriteOptions (...
org . junit . Assert . assertEquals ( expectedJson , asJson )
testSelectChainedWithIntersect ( ) { com . couchbase . client . java . query . dsl . path . SelectResultPath statement1 = new com . couchbase . client . java . query . dsl . path . DefaultSelectPath ( null ) . select ( com . couchbase . client . java . query . dsl . Expression . x ( "firstname" ) , com . couchbase . cl...
org . junit . Assert . assertEquals ( expected , statement1 . intersect ( statement2 ) . toString ( ) )
zouGeenMeldingMoetenGevenWantGeenOudersInBericht ( ) { nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht relatieBericht = mock ( nl . bzk . brp . model . bericht . kern . FamilierechtelijkeBetrekkingBericht . class ) ; nl . bzk . brp . model . operationeel . kern . FamilierechtelijkeBetrekki...
org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
selectBeforeMovesCaretToEndInCaseOfReduction ( ) { jetbrains . jetpad . model . collections . list . ObservableList < jetbrains . jetpad . projectional . cell . ProjectionalListSynchronizerTest . Child > children = container . children ; children . add ( new jetbrains . jetpad . projectional . cell . ProjectionalListSy...
org . junit . Assert . assertEquals ( 4 , ( ( int ) ( firstChild . caretPosition ( ) . get ( ) ) ) )
create_and_get ( ) { final org . apache . rya . indexing . entity . model . Type type = new org . apache . rya . indexing . entity . model . Type ( new org . apache . rya . api . domain . RyaIRI ( "urn:icecream" ) , com . google . common . collect . ImmutableSet . < org . apache . rya . api . domain . RyaIRI > builder ...
org . junit . Assert . assertEquals ( type , storedType . get ( ) )
testNotTooManyStatementsWhenYouCloseThem ( ) { client . createStatement ( ) . close ( ) ; client . createStatement ( ) . close ( ) ; client . createStatement ( ) . close ( ) ; client . createStatement ( ) . close ( ) ; client . createStatement ( ) . close ( ) ; client . createStatement ( ) . close ( ) ; client . create...
org . junit . Assert . assertTrue ( true )
testLoadWithoutType ( ) { org . kitesdk . data . Dataset < org . apache . avro . generic . GenericRecord > expected = mock ( org . kitesdk . data . Dataset . class ) ; when ( repo . load ( "ns" , "test" , org . apache . avro . generic . GenericRecord . class ) ) . thenReturn ( expected ) ; java . net . URI datasetUri =...
org . junit . Assert . assertEquals ( expected , ds )
testGetSetAssetId ( ) { java . lang . String expectedAssetId = "testAssetId" ; com . microsoft . windowsazure . services . media . models . LocatorInfo locatorInfo = new com . microsoft . windowsazure . services . media . models . LocatorInfo ( null , new com . microsoft . windowsazure . services . media . implementati...
org . junit . Assert . assertEquals ( expectedAssetId , actualAssetId )
testOriginalClassLoaderIsRestoredWhenHCatCliIsInvokedWithInvalidArguments ( ) { try { sqoopHCatUtilities . executeHCatProgramInProcess ( org . apache . sqoop . mapreduce . hcat . TestSqoopHCatUtilities . INVALID_HCAT_ARGS ) ; } catch ( java . io . IOException e ) { } "<AssertPlaceHolder>" ; } executeHCatProgramInProces...
org . junit . Assert . assertSame ( originalClassLoader , java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) )
getConnectionShouldGetConnection ( ) { org . neo4j . jdbc . bolt . impl . BoltNeo4jConnectionImpl connection = org . mockito . Mockito . mock ( org . neo4j . jdbc . bolt . impl . BoltNeo4jConnectionImpl . class ) ; org . neo4j . jdbc . bolt . BoltNeo4jDatabaseMetaData boltDatabaseMetaData = new org . neo4j . jdbc . bol...
org . junit . Assert . assertEquals ( connection , boltDatabaseMetaData . getConnection ( ) )
deveObterUFAutorizadoraComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe310 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; retornoConsultaCadastroDados . setUfAu...
org . junit . Assert . assertEquals ( DFUnidadeFederativa . SP , retornoConsultaCadastroDados . getUfAutorizadora ( ) )
workflowrunReport ( ) { net . sourceforge . seqware . pipeline . runner . PluginRunner runner = new net . sourceforge . seqware . pipeline . runner . PluginRunner ( ) ; java . lang . String [ ] args = new java . lang . String [ ] { "-p" , "net.sourceforge.seqware.pipeline.plugins.WorkflowRunReporter" , "--" , "--workfl...
org . junit . Assert . assertTrue ( true )
shouldReturnEqualForSameInstance ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelCacheFile left = createCacheFile ( zeroId ( ) , zeroId ( ) , getFile1Location ( ) ) ; boolean actual = left . equals ( left ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) {...
org . junit . Assert . assertTrue ( actual )
testAttributeNameValidatorFail ( ) { com . google . gwt . editor . client . Editor < java . lang . String > editorMock = mock ( com . google . gwt . editor . client . Editor . class ) ; java . util . List < com . google . gwt . editor . client . EditorError > result = presenter . attributeNameValidator . validate ( edi...
org . junit . Assert . assertFalse ( result . isEmpty ( ) )
testSetRandom ( ) { final java . util . Random rnd = new java . util . Random ( 4096 ) ; for ( final net . imglib2 . type . numeric . integer . Unsigned12BitType t : net . imglib2 . type . numeric . integer . Unsigned12BitTypeTest . img ) { final int v = rnd . nextInt ( 16 ) ; t . set ( v ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertTrue ( ( ( t . get ( ) ) == v ) )
optionSomeEqualsTest ( ) { org . apache . pivot . functional . monad . Option < java . lang . String > os1 = new org . apache . pivot . functional . monad . Some ( "Optional<sp>value<sp>1" ) ; System . out . println ( ( "optionSomeEqualsTest(),<sp>instance<sp>variable<sp>1<sp>is<sp>" + os1 ) ) ; org . apache . pivot . ...
org . junit . Assert . assertTrue ( ( os1 != os2 ) )
testFiltersIsSerializable ( ) { display . addFilter ( SWT . Skin , new org . eclipse . swt . widgets . DisplaySerialization_Test . SerializableListener ( ) ) ; org . eclipse . swt . widgets . Display deserializedDisplay = org . eclipse . swt . widgets . DisplaySerialization_Test . serializeAndDeserialize ( display ) ; ...
org . junit . Assert . assertTrue ( deserializedDisplay . filters ( SWT . Skin ) )
isPath_overEdgeEntries_resultIsTrue ( ) { drawingMotion . addPoint ( 0 , 0 ) ; drawingMotion . addPoint ( java . lang . Math . nextUp ( DrawingMotion . POINT_TOLERANCE ) , 0 ) ; drawingMotion . addPoint ( ( - ( java . lang . Math . nextUp ( DrawingMotion . POINT_TOLERANCE ) ) ) , 0 ) ; drawingMotion . addPoint ( 0 , ja...
org . junit . Assert . assertThat ( drawingMotion . isPath ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testIsFinalizeStateNotFinalizing ( ) { org . o3project . odenos . remoteobject . ObjectProperty prop = ( ( org . o3project . odenos . remoteobject . ObjectProperty ) ( target . getProperty ( ) . clone ( ) ) ) ; boolean result = org . powermock . reflect . Whitebox . invokeMethod ( target , "isFinalize" , prop ) ; "<Ass...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) )
tableWithSingleOffsetValue ( ) { long offset = 1000 ; com . streamsets . pipeline . lib . jdbc . multithread . TableContext table = com . streamsets . pipeline . lib . jdbc . multithread . TestMultithreadedTableProvider . createTableContext ( "schema" , "tableName" , "off" , "1000" , null , ( - 1 ) , true , false , off...
org . junit . Assert . assertEquals ( offset , table . getOffset ( ) )
fetchAddRefsWithDuplicateRefspec ( ) { final java . lang . String branchName = "branch" ; final java . lang . String remoteBranchName = "test/" + branchName ; remoteGit . commit ( ) . setMessage ( "commit" ) . call ( ) ; org . eclipse . jgit . lib . Ref branchRef = remoteGit . branchCreate ( ) . setName ( branchName ) ...
org . junit . Assert . assertEquals ( branchRef . getObjectId ( ) , db . resolve ( remoteBranchName ) )
shouldFetchTaskCountWithAuthorization ( ) { org . camunda . bpm . engine . identity . User user = identityService . newUser ( userId ) ; identityService . saveUser ( user ) ; org . camunda . bpm . engine . authorization . Authorization authorization = authorizationService . createNewAuthorization ( org . camunda . bpm ...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )